home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1996-08-20 | 12.0 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| ZX81 Sinclair BASIC (image/sinclairBASIC)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| bsdiff patch (other/bsdiffPatch)
| ext
| Unsupported |
1%
| dexvert
| imgdiff patch (other/imgdiffPatch)
| ext
| Unsupported |
1%
| dexvert
| WSUS Patch Storage File (other/wsusPatchStorageFile)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Tue Aug 20 22:55:05 1996, modified Tue Aug 20 22:55:05 1996, creator 'CWIE', type ASCII, 11619 bytes "PopupDialog.p" , at 0x2de3 410 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 50 6f 70 75 70 44 | 69 61 6c 6f 67 2e 70 00 |..PopupD|ialog.p.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 2d 63 00 | 00 01 9a ae 40 2b 09 ae |.....-c.|....@+..|
|00000060| 40 2b 09 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |@+......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 00 ed 00 00 |........|........|
|00000080| 55 4e 49 54 20 50 6f 70 | 75 70 44 69 61 6c 6f 67 |UNIT Pop|upDialog|
|00000090| 3b 0d 49 4e 54 45 52 46 | 41 43 45 0d 09 55 53 45 |;.INTERF|ACE..USE|
|000000a0| 53 0d 7b 24 49 46 43 20 | 55 4e 44 45 46 49 4e 45 |S.{$IFC |UNDEFINE|
|000000b0| 44 20 54 48 49 4e 4b 5f | 50 41 53 43 41 4c 7d 0d |D THINK_|PASCAL}.|
|000000c0| 7b 24 53 45 54 43 20 54 | 48 49 4e 4b 5f 50 41 53 |{$SETC T|HINK_PAS|
|000000d0| 43 41 4c 3d 46 41 4c 53 | 45 7d 0d 7b 24 45 4e 44 |CAL=FALS|E}.{$END|
|000000e0| 43 7d 0d 7b 24 49 46 43 | 20 54 48 49 4e 4b 5f 50 |C}.{$IFC| THINK_P|
|000000f0| 41 53 43 41 4c 3d 46 41 | 4c 53 45 7d 0d 09 09 54 |ASCAL=FA|LSE}...T|
|00000100| 79 70 65 73 2c 20 54 6f | 6f 6c 55 74 69 6c 73 2c |ypes, To|olUtils,|
|00000110| 20 52 65 73 6f 75 72 63 | 65 73 2c 20 43 6f 6e 74 | Resourc|es, Cont|
|00000120| 72 6f 6c 73 2c 20 4d 65 | 6e 75 73 2c 20 4d 65 6d |rols, Me|nus, Mem|
|00000130| 6f 72 79 2c 20 51 75 69 | 63 6b 44 72 61 77 2c 20 |ory, Qui|ckDraw, |
|00000140| 51 75 69 63 6b 44 72 61 | 77 54 65 78 74 2c 20 4f |QuickDra|wText, O|
|00000150| 53 55 74 69 6c 73 2c 20 | 45 76 65 6e 74 73 2c 20 |SUtils, |Events, |
|00000160| 44 69 61 6c 6f 67 73 2c | 20 57 69 6e 64 6f 77 73 |Dialogs,| Windows|
|00000170| 2c 20 46 6f 6e 74 73 2c | 20 0d 7b 24 45 4e 44 43 |, Fonts,| .{$ENDC|
|00000180| 7d 0d 09 09 4c 6f 77 4d | 65 6d 2c 20 4d 65 72 63 |}...LowM|em, Merc|
|00000190| 75 74 69 6f 41 50 49 3b | 0d 09 43 4f 4e 53 54 0d |utioAPI;|..CONST.|
|000001a0| 09 09 4f 66 66 20 3d 20 | 30 3b 0d 09 09 4f 6e 20 |..Off = |0;...On |
|000001b0| 3d 20 31 3b 0d 09 09 44 | 69 73 61 62 6c 65 20 3d |= 1;...D|isable =|
|000001c0| 20 32 35 35 3b 0d 0d 09 | 09 65 6e 74 65 72 4b 65 | 255;...|.enterKe|
|000001d0| 79 20 3d 20 33 3b 0d 09 | 09 68 65 6c 70 4b 65 79 |y = 3;..|.helpKey|
|000001e0| 20 3d 20 35 3b 0d 09 09 | 64 65 6c 65 74 65 4b 65 | = 5;...|deleteKe|
|000001f0| 79 20 3d 20 38 3b 0d 09 | 09 74 61 62 4b 65 79 20 |y = 8;..|.tabKey |
|00000200| 3d 20 39 3b 0d 09 09 6c | 69 6e 65 66 65 65 64 4b |= 9;...l|inefeedK|
|00000210| 65 79 20 3d 20 31 30 3b | 0d 09 09 43 52 20 3d 20 |ey = 10;|...CR = |
|00000220| 31 33 3b 0d 0d 09 09 70 | 65 72 69 6f 64 4b 65 79 |13;....p|eriodKey|
|00000230| 20 3d 20 34 36 3b 0d 09 | 09 73 6c 61 73 68 4b 65 | = 46;..|.slashKe|
|00000240| 79 20 3d 20 34 37 3b 0d | 09 09 71 75 65 73 74 69 |y = 47;.|..questi|
|00000250| 6f 6e 6d 61 72 6b 4b 65 | 79 20 3d 20 36 33 3b 0d |onmarkKe|y = 63;.|
|00000260| 0d 09 09 50 6f 70 75 70 | 44 4c 4f 47 20 3d 20 33 |...Popup|DLOG = 3|
|00000270| 30 30 31 3b 0d 09 09 70 | 6f 70 75 70 31 49 74 65 |001;...p|opup1Ite|
|00000280| 6d 20 3d 20 33 3b 0d 09 | 09 70 6f 70 75 70 32 49 |m = 3;..|.popup2I|
|00000290| 74 65 6d 20 3d 20 37 3b | 0d 09 09 64 65 66 61 75 |tem = 7;|...defau|
|000002a0| 6c 74 49 74 65 6d 20 3d | 20 35 3b 0d 09 0d 09 09 |ltItem =| 5;.....|
|000002b0| 6e 6f 72 6d 61 6c 50 6f | 70 75 70 49 44 20 3d 20 |normalPo|pupID = |
|000002c0| 31 31 3b 0d 09 09 73 6d | 61 6c 6c 50 6f 70 75 70 |11;...sm|allPopup|
|000002d0| 49 44 20 3d 20 31 32 3b | 0d 09 09 0d 09 50 52 4f |ID = 12;|.....PRO|
|000002e0| 43 45 44 55 52 45 20 64 | 6f 50 6f 70 75 70 44 69 |CEDURE d|oPopupDi|
|000002f0| 61 6c 6f 67 3b 0d 0d 49 | 4d 50 4c 45 4d 45 4e 54 |alog;..I|MPLEMENT|
|00000300| 41 54 49 4f 4e 0d 0d 09 | 54 59 50 45 0d 09 09 70 |ATION...|TYPE...p|
|00000310| 6f 70 75 70 49 6e 66 6f | 20 3d 20 52 45 43 4f 52 |opupInfo| = RECOR|
|00000320| 44 0d 09 09 09 68 4d 65 | 6e 75 3a 20 4d 65 6e 75 |D....hMe|nu: Menu|
|00000330| 48 61 6e 64 6c 65 3b 0d | 09 09 09 73 65 6c 65 63 |Handle;.|...selec|
|00000340| 74 65 64 49 74 65 6d 3a | 20 69 6e 74 65 67 65 72 |tedItem:| integer|
|00000350| 3b 0d 09 09 09 73 6d 61 | 6c 6c 46 6f 6e 74 20 3a |;....sma|llFont :|
|00000360| 20 42 6f 6f 6c 65 61 6e | 3b 0d 09 09 45 4e 44 3b | Boolean|;...END;|
|00000370| 0d 09 09 44 69 61 6c 6f | 67 47 6c 6f 62 61 6c 73 |...Dialo|gGlobals|
|00000380| 20 3d 20 52 45 43 4f 52 | 44 0d 09 09 09 09 6d 65 | = RECOR|D.....me|
|00000390| 6e 75 73 20 3a 20 61 72 | 72 61 79 20 5b 6e 6f 72 |nus : ar|ray [nor|
|000003a0| 6d 61 6c 50 6f 70 75 70 | 49 44 2e 2e 73 6d 61 6c |malPopup|ID..smal|
|000003b0| 6c 50 6f 70 75 70 49 44 | 5d 20 6f 66 20 70 6f 70 |lPopupID|] of pop|
|000003c0| 75 70 49 6e 66 6f 3b 0d | 09 09 09 45 4e 44 3b 0d |upInfo;.|...END;.|
|000003d0| 09 09 44 69 61 6c 6f 67 | 47 6c 6f 62 61 6c 73 50 |..Dialog|GlobalsP|
|000003e0| 74 72 20 3d 20 5e 44 69 | 61 6c 6f 67 47 6c 6f 62 |tr = ^Di|alogGlob|
|000003f0| 61 6c 73 3b 0d 0d 09 46 | 55 4e 43 54 49 4f 4e 20 |als;...F|UNCTION |
|00000400| 49 74 65 6d 54 6f 4d 65 | 6e 75 49 44 28 69 74 65 |ItemToMe|nuID(ite|
|00000410| 6d 3a 69 6e 74 65 67 65 | 72 29 3a 69 6e 74 65 67 |m:intege|r):integ|
|00000420| 65 72 3b 0d 09 42 45 47 | 49 4e 0d 09 09 49 46 20 |er;..BEG|IN...IF |
|00000430| 69 74 65 6d 20 3d 20 70 | 6f 70 75 70 31 49 74 65 |item = p|opup1Ite|
|00000440| 6d 20 54 48 45 4e 20 49 | 74 65 6d 54 6f 4d 65 6e |m THEN I|temToMen|
|00000450| 75 49 44 3a 3d 20 6e 6f | 72 6d 61 6c 50 6f 70 75 |uID:= no|rmalPopu|
|00000460| 70 49 44 20 45 4c 53 45 | 20 49 74 65 6d 54 6f 4d |pID ELSE| ItemToM|
|00000470| 65 6e 75 49 44 20 3a 3d | 20 73 6d 61 6c 6c 50 6f |enuID :=| smallPo|
|00000480| 70 75 70 49 44 3b 20 0d | 09 45 4e 44 3b 0d 09 0d |pupID; .|.END;...|
|00000490| 09 50 52 4f 43 45 44 55 | 52 45 20 46 61 6b 65 43 |.PROCEDU|RE FakeC|
|000004a0| 6c 69 63 6b 20 28 56 41 | 52 20 74 68 65 44 69 61 |lick (VA|R theDia|
|000004b0| 6c 6f 67 3a 20 44 69 61 | 6c 6f 67 50 74 72 3b 20 |log: Dia|logPtr; |
|000004c0| 74 68 65 42 75 74 74 6f | 6e 3a 20 49 6e 74 65 67 |theButto|n: Integ|
|000004d0| 65 72 29 3b 0d 7b 20 73 | 65 6c 65 63 74 2f 64 65 |er);.{ s|elect/de|
|000004e0| 73 65 6c 65 63 74 20 61 | 20 62 75 74 74 6f 6e 20 |select a| button |
|000004f0| 69 6e 20 61 20 44 69 61 | 6c 6f 67 20 7d 0d 09 09 |in a Dia|log }...|
|00000500| 56 41 52 0d 09 09 09 74 | 68 65 54 79 70 65 3a 20 |VAR....t|heType: |
|00000510| 49 6e 74 65 67 65 72 3b | 0d 09 09 09 69 74 65 6d |Integer;|....item|
|00000520| 48 61 6e 64 6c 65 3a 20 | 48 61 6e 64 6c 65 3b 0d |Handle: |Handle;.|
|00000530| 09 09 09 69 52 65 63 74 | 3a 20 52 65 63 74 3b 0d |...iRect|: Rect;.|
|00000540| 09 09 09 54 69 63 6b 73 | 3a 20 4c 6f 6e 67 49 6e |...Ticks|: LongIn|
|00000550| 74 3b 0d 09 42 45 47 49 | 4e 0d 09 09 47 65 74 44 |t;..BEGI|N...GetD|
|00000560| 69 61 6c 6f 67 49 74 65 | 6d 28 74 68 65 44 69 61 |ialogIte|m(theDia|
|00000570| 6c 6f 67 2c 20 74 68 65 | 42 75 74 74 6f 6e 2c 20 |log, the|Button, |
|00000580| 74 68 65 54 79 70 65 2c | 20 69 74 65 6d 48 61 6e |theType,| itemHan|
|00000590| 64 6c 65 2c 20 69 52 65 | 63 74 29 3b 0d 09 09 48 |dle, iRe|ct);...H|
|000005a0| 69 6c 69 74 65 43 6f 6e | 74 72 6f 6c 28 43 6f 6e |iliteCon|trol(Con|
|000005b0| 74 72 6f 6c 48 61 6e 64 | 6c 65 28 69 74 65 6d 48 |trolHand|le(itemH|
|000005c0| 61 6e 64 6c 65 29 2c 20 | 4f 6e 29 3b 0d 09 09 44 |andle), |On);...D|
|000005d0| 65 6c 61 79 28 38 2c 20 | 54 69 63 6b 73 29 3b 0d |elay(8, |Ticks);.|
|000005e0| 09 09 48 69 6c 69 74 65 | 43 6f 6e 74 72 6f 6c 28 |..Hilite|Control(|
|000005f0| 43 6f 6e 74 72 6f 6c 48 | 61 6e 64 6c 65 28 69 74 |ControlH|andle(it|
|00000600| 65 6d 48 61 6e 64 6c 65 | 29 2c 20 4f 66 66 29 3b |emHandle|), Off);|
|00000610| 0d 09 45 4e 44 3b 20 7b | 20 6f 66 20 70 72 6f 63 |..END; {| of proc|
|00000620| 20 46 61 6b 65 43 6c 69 | 63 6b 20 7d 0d 0d 09 50 | FakeCli|ck }...P|
|00000630| 52 4f 43 45 44 55 52 45 | 20 44 72 61 77 44 65 66 |ROCEDURE| DrawDef|
|00000640| 61 75 6c 74 42 74 6e 20 | 28 74 68 65 44 69 61 6c |aultBtn |(theDial|
|00000650| 6f 67 3a 20 44 69 61 6c | 6f 67 50 74 72 3b 20 49 |og: Dial|ogPtr; I|
|00000660| 74 65 6d 4e 75 6d 62 65 | 72 3a 20 49 6e 74 65 67 |temNumbe|r: Integ|
|00000670| 65 72 29 3b 0d 20 20 7b | 20 68 65 61 76 79 20 62 |er);. {| heavy b|
|00000680| 6c 61 63 6b 20 6f 75 74 | 6c 69 6e 65 20 7d 0d 09 |lack out|line }..|
|00000690| 09 56 41 52 0d 09 09 09 | 69 54 79 70 65 3a 20 49 |.VAR....|iType: I|
|000006a0| 6e 74 65 67 65 72 3b 0d | 09 09 09 69 74 65 6d 48 |nteger;.|...itemH|
|000006b0| 64 6c 3a 20 48 61 6e 64 | 6c 65 3b 0d 09 09 09 70 |dl: Hand|le;....p|
|000006c0| 73 3a 20 50 65 6e 53 74 | 61 74 65 3b 0d 09 09 09 |s: PenSt|ate;....|
|000006d0| 69 52 65 63 74 3a 20 52 | 65 63 74 3b 0d 09 42 45 |iRect: R|ect;..BE|
|000006e0| 47 49 4e 0d 09 09 53 65 | 74 50 6f 72 74 28 74 68 |GIN...Se|tPort(th|
|000006f0| 65 44 69 61 6c 6f 67 29 | 3b 20 20 20 20 20 20 20 |eDialog)|; |
|00000700| 20 20 20 20 20 20 20 20 | 20 20 7b 20 73 65 74 20 | | { set |
|00000710| 77 69 6e 64 6f 77 20 74 | 6f 20 63 75 72 72 65 6e |window t|o curren|
|00000720| 74 20 67 72 61 66 20 70 | 6f 72 74 20 7d 0d 09 09 |t graf p|ort }...|
|00000730| 47 65 74 44 69 61 6c 6f | 67 49 74 65 6d 28 74 68 |GetDialo|gItem(th|
|00000740| 65 44 69 61 6c 6f 67 2c | 20 49 74 65 6d 4e 75 6d |eDialog,| ItemNum|
|00000750| 62 65 72 2c 20 69 54 79 | 70 65 2c 20 69 74 65 6d |ber, iTy|pe, item|
|00000760| 48 64 6c 2c 20 69 52 65 | 63 74 29 3b 20 7b 20 67 |Hdl, iRe|ct); { g|
|00000770| 65 74 20 6c 6f 63 61 74 | 69 6f 6e 20 7d 0d 09 09 |et locat|ion }...|
|00000780| 47 65 74 50 65 6e 53 74 | 61 74 65 28 70 73 29 3b |GetPenSt|ate(ps);|
|00000790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000007a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 7b | | {|
|000007b0| 20 73 61 76 65 20 63 75 | 72 72 65 6e 74 20 70 65 | save cu|rrent pe|
|000007c0| 6e 20 7d 0d 09 09 50 65 | 6e 4e 6f 72 6d 61 6c 3b |n }...Pe|nNormal;|
|000007d0| 0d 09 09 50 65 6e 53 69 | 7a 65 28 33 2c 20 33 29 |...PenSi|ze(3, 3)|
|000007e0| 3b 0d 09 09 49 6e 73 65 | 74 52 65 63 74 28 69 52 |;...Inse|tRect(iR|
|000007f0| 65 63 74 2c 20 2d 34 2c | 20 2d 34 29 3b 0d 09 09 |ect, -4,| -4);...|
|00000800| 46 72 61 6d 65 52 6f 75 | 6e 64 52 65 63 74 28 69 |FrameRou|ndRect(i|
|00000810| 52 65 63 74 2c 20 31 36 | 2c 20 31 36 29 3b 0d 09 |Rect, 16|, 16);..|
|00000820| 09 53 65 74 50 65 6e 53 | 74 61 74 65 28 70 73 29 |.SetPenS|tate(ps)|
|00000830| 3b 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |; | |
|00000840| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000850| 7b 20 72 65 73 74 6f 72 | 65 20 6f 6c 64 20 70 65 |{ restor|e old pe|
|00000860| 6e 20 7d 0d 09 45 4e 44 | 3b 20 20 7b 20 6f 66 20 |n }..END|; { of |
|00000870| 70 72 6f 63 20 44 72 61 | 77 44 65 66 61 75 6c 74 |proc Dra|wDefault|
|00000880| 42 74 6e 20 7d 0d 0d 0d | 09 50 52 4f 43 45 44 55 |Btn }...|.PROCEDU|
|00000890| 52 45 20 55 70 64 61 74 | 65 50 6f 70 55 70 20 28 |RE Updat|ePopUp (|
|000008a0| 74 68 65 44 69 61 6c 6f | 67 3a 20 44 69 61 6c 6f |theDialo|g: Dialo|
|000008b0| 67 50 74 72 3b 20 49 74 | 65 6d 3a 20 49 6e 74 65 |gPtr; It|em: Inte|
|000008c0| 67 65 72 29 3b 0d 7b 20 | 20 20 64 72 61 77 20 70 |ger);.{ | draw p|
|000008d0| 6f 70 75 70 20 6d 65 6e | 75 20 7d 0d 09 09 56 41 |opup men|u }...VA|
|000008e0| 52 0d 09 09 09 61 52 65 | 63 74 3a 20 52 65 63 74 |R....aRe|ct: Rect|
|000008f0| 3b 0d 09 09 09 74 68 65 | 47 6c 6f 62 61 6c 73 3a |;....the|Globals:|
|00000900| 20 44 69 61 6c 6f 67 47 | 6c 6f 62 61 6c 73 50 74 | DialogG|lobalsPt|
|00000910| 72 3b 0d 09 09 09 49 73 | 4e 6f 76 69 63 65 3a 20 |r;....Is|Novice: |
|00000920| 62 6f 6f 6c 65 61 6e 3b | 0d 09 09 09 74 68 65 54 |boolean;|....theT|
|00000930| 79 70 65 3a 20 49 6e 74 | 65 67 65 72 3b 0d 09 09 |ype: Int|eger;...|
|00000940| 09 69 74 65 6d 48 64 6c | 3a 20 48 61 6e 64 6c 65 |.itemHdl|: Handle|
|00000950| 3b 0d 09 09 09 69 52 65 | 63 74 3a 20 52 65 63 74 |;....iRe|ct: Rect|
|00000960| 3b 0d 09 09 09 6d 65 6e | 75 49 44 3a 69 6e 74 65 |;....men|uID:inte|
|00000970| 67 65 72 3b 0d 09 42 45 | 47 49 4e 0d 09 09 74 68 |ger;..BE|GIN...th|
|00000980| 65 47 6c 6f 62 61 6c 73 | 20 3a 3d 20 44 69 61 6c |eGlobals| := Dial|
|00000990| 6f 67 47 6c 6f 62 61 6c | 73 50 74 72 28 47 65 74 |ogGlobal|sPtr(Get|
|000009a0| 57 52 65 66 43 6f 6e 28 | 74 68 65 44 69 61 6c 6f |WRefCon(|theDialo|
|000009b0| 67 29 29 3b 0d 09 09 6d | 65 6e 75 49 44 20 3a 3d |g));...m|enuID :=|
|000009c0| 20 49 74 65 6d 54 6f 4d | 65 6e 75 49 44 28 49 74 | ItemToM|enuID(It|
|000009d0| 65 6d 29 3b 0d 09 09 47 | 65 74 44 69 61 6c 6f 67 |em);...G|etDialog|
|000009e0| 49 74 65 6d 28 74 68 65 | 44 69 61 6c 6f 67 2c 20 |Item(the|Dialog, |
|000009f0| 49 74 65 6d 2c 20 74 68 | 65 54 79 70 65 2c 20 69 |Item, th|eType, i|
|00000a00| 74 65 6d 48 64 6c 2c 20 | 61 52 65 63 74 29 3b 0d |temHdl, |aRect);.|
|00000a10| 09 09 49 6e 73 65 74 52 | 65 63 74 28 61 52 65 63 |..InsetR|ect(aRec|
|00000a20| 74 2c 20 2d 32 2c 20 2d | 32 29 3b 0d 09 09 45 72 |t, -2, -|2);...Er|
|00000a30| 61 73 65 52 65 63 74 28 | 61 52 65 63 74 29 3b 0d |aseRect(|aRect);.|
|00000a40| 09 09 49 6e 73 65 74 52 | 65 63 74 28 61 52 65 63 |..InsetR|ect(aRec|
|00000a50| 74 2c 20 32 2c 20 32 29 | 3b 0d 0d 09 09 49 46 20 |t, 2, 2)|;....IF |
|00000a60| 74 68 65 47 6c 6f 62 61 | 6c 73 5e 2e 6d 65 6e 75 |theGloba|ls^.menu|
|00000a70| 73 5b 6d 65 6e 75 49 44 | 5d 2e 73 6d 61 6c 6c 46 |s[menuID|].smallF|
|00000a80| 6f 6e 74 20 54 48 45 4e | 20 42 45 47 49 4e 0d 09 |ont THEN| BEGIN..|
|00000a90| 09 09 54 65 78 74 53 69 | 7a 65 28 39 29 3b 0d 09 |..TextSi|ze(9);..|
|00000aa0| 09 09 54 65 78 74 46 6f | 6e 74 28 67 65 6e 65 76 |..TextFo|nt(genev|
|00000ab0| 61 29 3b 0d 09 09 09 45 | 4e 44 3b 0d 09 09 4d 44 |a);....E|ND;...MD|
|00000ac0| 45 46 5f 43 61 6c 63 49 | 74 65 6d 53 69 7a 65 28 |EF_CalcI|temSize(|
|00000ad0| 74 68 65 47 6c 6f 62 61 | 6c 73 5e 2e 6d 65 6e 75 |theGloba|ls^.menu|
|00000ae0| 73 5b 6d 65 6e 75 49 44 | 5d 2e 68 4d 65 6e 75 2c |s[menuID|].hMenu,|
|00000af0| 20 74 68 65 47 6c 6f 62 | 61 6c 73 5e 2e 6d 65 6e | theGlob|als^.men|
|00000b00| 75 73 5b 6d 65 6e 75 49 | 44 5d 2e 73 65 6c 65 63 |us[menuI|D].selec|
|00000b10| 74 65 64 49 74 65 6d 2c | 20 61 52 65 63 74 29 3b |tedItem,| aRect);|
|00000b20| 0d 0d 09 09 4d 6f 76 65 | 54 6f 28 61 52 65 63 74 |....Move|To(aRect|
|00000b30| 2e 6c 65 66 74 20 2b 20 | 32 2c 20 61 52 65 63 74 |.left + |2, aRect|
|00000b40| 2e 62 6f 74 74 6f 6d 29 | 3b 0d 09 09 4c 69 6e 65 |.bottom)|;...Line|
|00000b50| 54 6f 28 61 52 65 63 74 | 2e 72 69 67 68 74 2c 20 |To(aRect|.right, |
|00000b60| 61 52 65 63 74 2e 62 6f | 74 74 6f 6d 29 3b 0d 09 |aRect.bo|ttom);..|
|00000b70| 09 4d 6f 76 65 54 6f 28 | 61 52 65 63 74 2e 72 69 |.MoveTo(|aRect.ri|
|00000b80| 67 68 74 2c 20 61 52 65 | 63 74 2e 74 6f 70 20 2b |ght, aRe|ct.top +|
|00000b90| 20 32 29 3b 0d 09 09 4c | 69 6e 65 54 6f 28 61 52 | 2);...L|ineTo(aR|
|00000ba0| 65 63 74 2e 72 69 67 68 | 74 2c 20 61 52 65 63 74 |ect.righ|t, aRect|
|00000bb0| 2e 62 6f 74 74 6f 6d 29 | 3b 0d 0d 09 09 4d 6f 76 |.bottom)|;....Mov|
|00000bc0| 65 54 6f 28 61 52 65 63 | 74 2e 6c 65 66 74 20 2b |eTo(aRec|t.left +|
|00000bd0| 20 36 2c 20 61 52 65 63 | 74 2e 62 6f 74 74 6f 6d | 6, aRec|t.bottom|
|00000be0| 20 2d 20 35 29 3b 09 7b | 20 6d 6f 76 65 20 74 6f | - 5);.{| move to|
|00000bf0| 20 74 65 78 74 20 70 6f | 73 69 74 69 6f 6e 20 7d | text po|sition }|
|00000c00| 0d 09 09 46 69 6c 6c 52 | 65 63 74 28 61 52 65 63 |...FillR|ect(aRec|
|00000c10| 74 2c 20 71 64 2e 77 68 | 69 74 65 29 3b 0d 0d 09 |t, qd.wh|ite);...|
|00000c20| 09 4d 44 45 46 5f 44 72 | 61 77 49 74 65 6d 28 74 |.MDEF_Dr|awItem(t|
|00000c30| 68 65 47 6c 6f 62 61 6c | 73 5e 2e 6d 65 6e 75 73 |heGlobal|s^.menus|
|00000c40| 5b 6d 65 6e 75 49 44 5d | 2e 68 4d 65 6e 75 2c 20 |[menuID]|.hMenu, |
|00000c50| 74 68 65 47 6c 6f 62 61 | 6c 73 5e 2e 6d 65 6e 75 |theGloba|ls^.menu|
|00000c60| 73 5b 6d 65 6e 75 49 44 | 5d 2e 73 65 6c 65 63 74 |s[menuID|].select|
|00000c70| 65 64 49 74 65 6d 2c 20 | 61 52 65 63 74 29 3b 0d |edItem, |aRect);.|
|00000c80| 0d 09 09 46 72 61 6d 65 | 52 65 63 74 28 61 52 65 |...Frame|Rect(aRe|
|00000c90| 63 74 29 3b 0d 09 09 53 | 65 74 44 69 61 6c 6f 67 |ct);...S|etDialog|
|00000ca0| 49 74 65 6d 28 74 68 65 | 44 69 61 6c 6f 67 2c 20 |Item(the|Dialog, |
|00000cb0| 49 74 65 6d 2c 20 74 68 | 65 54 79 70 65 2c 20 69 |Item, th|eType, i|
|00000cc0| 74 65 6d 48 64 6c 2c 20 | 61 52 65 63 74 29 3b 0d |temHdl, |aRect);.|
|00000cd0| 09 09 49 46 20 74 68 65 | 47 6c 6f 62 61 6c 73 5e |..IF the|Globals^|
|00000ce0| 2e 6d 65 6e 75 73 5b 6d | 65 6e 75 49 44 5d 2e 73 |.menus[m|enuID].s|
|00000cf0| 6d 61 6c 6c 46 6f 6e 74 | 20 54 48 45 4e 20 42 45 |mallFont| THEN BE|
|00000d00| 47 49 4e 0d 09 09 09 54 | 65 78 74 53 69 7a 65 28 |GIN....T|extSize(|
|00000d10| 30 29 3b 0d 09 09 09 54 | 65 78 74 46 6f 6e 74 28 |0);....T|extFont(|
|00000d20| 30 29 3b 0d 09 09 09 45 | 4e 44 3b 0d 09 45 4e 44 |0);....E|ND;..END|
|00000d30| 3b 0d 0d 0d 09 46 55 4e | 43 54 49 4f 4e 20 50 6f |;....FUN|CTION Po|
|00000d40| 70 55 70 53 65 6c 65 63 | 74 57 69 74 68 57 69 6e |pUpSelec|tWithWin|
|00000d50| 64 6f 77 46 6f 6e 74 20 | 28 74 68 65 4d 65 6e 75 |dowFont |(theMenu|
|00000d60| 20 3a 20 4d 65 6e 75 48 | 61 6e 64 6c 65 3b 20 70 | : MenuH|andle; p|
|00000d70| 6f 70 50 74 3a 20 50 6f | 69 6e 74 3b 20 70 6f 70 |opPt: Po|int; pop|
|00000d80| 75 70 49 74 65 6d 3a 20 | 69 6e 74 65 67 65 72 3b |upItem: |integer;|
|00000d90| 20 75 73 65 57 46 6f 6e | 74 3a 20 62 6f 6f 6c 65 | useWFon|t: boole|
|00000da0| 61 6e 29 3a 20 69 6e 74 | 65 67 65 72 3b 0d 09 56 |an): int|eger;..V|
|00000db0| 41 52 0d 09 09 69 74 65 | 6d 3a 20 69 6e 74 65 67 |AR...ite|m: integ|
|00000dc0| 65 72 3b 0d 09 09 69 74 | 65 6d 4d 61 72 6b 20 3a |er;...it|emMark :|
|00000dd0| 20 63 68 61 72 3b 0d 09 | 09 6f 6c 64 53 79 73 46 | char;..|.oldSysF|
|00000de0| 6f 6e 74 2c 20 6f 6c 64 | 57 4d 67 72 46 6f 6e 74 |ont, old|WMgrFont|
|00000df0| 2c 20 6f 6c 64 43 57 4d | 67 72 46 6f 6e 74 3a 20 |, oldCWM|grFont: |
|00000e00| 69 6e 74 65 67 65 72 3b | 0d 09 09 6f 6c 64 53 79 |integer;|...oldSy|
|00000e10| 73 53 69 7a 65 2c 20 6f | 6c 64 57 4d 67 72 53 69 |sSize, o|ldWMgrSi|
|00000e20| 7a 65 2c 20 6f 6c 64 43 | 57 4d 67 72 53 69 7a 65 |ze, oldC|WMgrSize|
|00000e30| 3a 20 69 6e 74 65 67 65 | 72 3b 0d 09 09 73 61 76 |: intege|r;...sav|
|00000e40| 65 46 6f 6e 74 46 61 6d | 3a 20 69 6e 74 65 67 65 |eFontFam|: intege|
|00000e50| 72 3b 0d 09 09 63 75 72 | 50 6f 72 74 3a 20 47 72 |r;...cur|Port: Gr|
|00000e60| 61 66 50 74 72 3b 0d 09 | 09 77 4d 67 72 50 6f 72 |afPtr;..|.wMgrPor|
|00000e70| 74 3a 20 47 72 61 66 50 | 74 72 3b 0d 09 09 77 4d |t: GrafP|tr;...wM|
|00000e80| 67 72 43 50 6f 72 74 3a | 20 43 47 72 61 66 50 74 |grCPort:| CGrafPt|
|00000e90| 72 3b 0d 09 09 74 68 65 | 57 6f 72 6c 64 3a 53 79 |r;...the|World:Sy|
|00000ea0| 73 45 6e 76 52 65 63 3b | 0d 09 42 45 47 49 4e 0d |sEnvRec;|..BEGIN.|
|00000eb0| 09 09 6f 6c 64 53 79 73 | 46 6f 6e 74 20 3a 3d 20 |..oldSys|Font := |
|00000ec0| 4c 4d 47 65 74 53 79 73 | 46 6f 6e 74 46 61 6d 3b |LMGetSys|FontFam;|
|00000ed0| 0d 09 09 6f 6c 64 53 79 | 73 53 69 7a 65 20 3a 3d |...oldSy|sSize :=|
|00000ee0| 20 4c 4d 47 65 74 53 79 | 73 46 6f 6e 74 53 69 7a | LMGetSy|sFontSiz|
|00000ef0| 65 3b 0d 09 09 47 65 74 | 50 6f 72 74 28 63 75 72 |e;...Get|Port(cur|
|00000f00| 50 6f 72 74 29 3b 0d 09 | 09 49 46 20 28 28 63 75 |Port);..|.IF ((cu|
|00000f10| 72 50 6f 72 74 5e 2e 74 | 78 46 6f 6e 74 20 3d 20 |rPort^.t|xFont = |
|00000f20| 6f 6c 64 53 79 73 46 6f | 6e 74 29 20 26 20 28 63 |oldSysFo|nt) & (c|
|00000f30| 75 72 50 6f 72 74 5e 2e | 74 78 53 69 7a 65 20 3d |urPort^.|txSize =|
|00000f40| 20 6f 6c 64 53 79 73 53 | 69 7a 65 29 29 20 54 48 | oldSysS|ize)) TH|
|00000f50| 45 4e 0d 09 09 09 75 73 | 65 57 46 6f 6e 74 20 3a |EN....us|eWFont :|
|00000f60| 3d 20 66 61 6c 73 65 3b | 0d 09 09 09 0d 09 09 49 |= false;|.......I|
|00000f70| 46 20 75 73 65 57 46 6f | 6e 74 20 54 48 45 4e 20 |F useWFo|nt THEN |
|00000f80| 42 45 47 49 4e 0d 09 09 | 09 7b 20 68 61 63 6b 20 |BEGIN...|.{ hack |
|00000f90| 74 6f 20 66 69 78 20 62 | 75 67 73 20 63 61 75 73 |to fix b|ugs caus|
|00000fa0| 65 64 20 62 79 20 70 72 | 6f 67 72 61 6d 73 20 74 |ed by pr|ograms t|
|00000fb0| 68 61 74 20 6d 65 73 73 | 20 75 70 20 74 68 65 20 |hat mess| up the |
|00000fc0| 57 69 6e 64 6f 77 4d 67 | 72 20 70 6f 72 74 28 73 |WindowMg|r port(s|
|00000fd0| 29 0d 09 09 09 20 20 28 | 65 2e 67 2e 20 4d 61 63 |).... (|e.g. Mac|
|00000fe0| 57 72 69 74 65 20 26 20 | 57 6f 72 64 29 20 20 2d |Write & |Word) -|
|00000ff0| 20 74 68 61 6e 6b 73 20 | 74 6f 20 4c 65 6f 6e 61 | thanks |to Leona|
|00001000| 72 64 20 52 6f 73 65 6e | 74 68 61 6c 20 66 6f 72 |rd Rosen|thal for|
|00001010| 20 73 6f 6c 6e 20 7d 0d | 09 09 09 47 65 74 57 4d | soln }.|...GetWM|
|00001020| 67 72 50 6f 72 74 28 77 | 4d 67 72 50 6f 72 74 29 |grPort(w|MgrPort)|
|00001030| 3b 0d 09 09 09 53 65 74 | 50 6f 72 74 28 77 4d 67 |;....Set|Port(wMg|
|00001040| 72 50 6f 72 74 29 3b 0d | 09 09 09 6f 6c 64 57 4d |rPort);.|...oldWM|
|00001050| 67 72 46 6f 6e 74 20 3a | 3d 20 77 4d 67 72 50 6f |grFont :|= wMgrPo|
|00001060| 72 74 5e 2e 74 78 46 6f | 6e 74 3b 0d 09 09 09 6f |rt^.txFo|nt;....o|
|00001070| 6c 64 57 4d 67 72 53 69 | 7a 65 20 3a 3d 20 77 4d |ldWMgrSi|ze := wM|
|00001080| 67 72 50 6f 72 74 5e 2e | 74 78 53 69 7a 65 3b 0d |grPort^.|txSize;.|
|00001090| 09 09 09 54 65 78 74 46 | 6f 6e 74 28 77 4d 67 72 |...TextF|ont(wMgr|
|000010a0| 50 6f 72 74 5e 2e 74 78 | 46 6f 6e 74 29 3b 0d 09 |Port^.tx|Font);..|
|000010b0| 09 09 54 65 78 74 53 69 | 7a 65 28 77 4d 67 72 50 |..TextSi|ze(wMgrP|
|000010c0| 6f 72 74 5e 2e 74 78 53 | 69 7a 65 29 3b 0d 09 09 |ort^.txS|ize);...|
|000010d0| 09 49 46 20 28 28 53 79 | 73 45 6e 76 69 72 6f 6e |.IF ((Sy|sEnviron|
|000010e0| 73 20 28 31 2c 20 74 68 | 65 57 6f 72 6c 64 29 20 |s (1, th|eWorld) |
|000010f0| 3d 20 6e 6f 45 72 72 29 | 20 26 20 28 74 68 65 57 |= noErr)| & (theW|
|00001100| 6f 72 6c 64 2e 68 61 73 | 43 6f 6c 6f 72 51 44 29 |orld.has|ColorQD)|
|00001110| 29 20 54 48 45 4e 20 42 | 45 47 49 4e 0d 09 09 09 |) THEN B|EGIN....|
|00001120| 09 47 65 74 43 57 4d 67 | 72 50 6f 72 74 28 77 4d |.GetCWMg|rPort(wM|
|00001130| 67 72 43 50 6f 72 74 29 | 3b 0d 09 09 09 09 53 65 |grCPort)|;.....Se|
|00001140| 74 50 6f 72 74 28 47 72 | 61 66 50 74 72 28 77 4d |tPort(Gr|afPtr(wM|
|00001150| 67 72 43 50 6f 72 74 29 | 29 3b 0d 09 09 09 09 6f |grCPort)|);.....o|
|00001160| 6c 64 43 57 4d 67 72 46 | 6f 6e 74 20 3a 3d 20 77 |ldCWMgrF|ont := w|
|00001170| 4d 67 72 43 50 6f 72 74 | 5e 2e 74 78 46 6f 6e 74 |MgrCPort|^.txFont|
|00001180| 3b 0d 09 09 09 09 6f 6c | 64 43 57 4d 67 72 53 69 |;.....ol|dCWMgrSi|
|00001190| 7a 65 20 3a 3d 20 77 4d | 67 72 43 50 6f 72 74 5e |ze := wM|grCPort^|
|000011a0| 2e 74 78 53 69 7a 65 3b | 0d 09 09 09 09 54 65 78 |.txSize;|.....Tex|
|000011b0| 74 46 6f 6e 74 28 77 4d | 67 72 43 50 6f 72 74 5e |tFont(wM|grCPort^|
|000011c0| 2e 74 78 46 6f 6e 74 29 | 3b 0d 09 09 09 09 54 65 |.txFont)|;.....Te|
|000011d0| 78 74 53 69 7a 65 28 77 | 4d 67 72 43 50 6f 72 74 |xtSize(w|MgrCPort|
|000011e0| 5e 2e 74 78 53 69 7a 65 | 29 3b 0d 09 09 09 09 45 |^.txSize|);.....E|
|000011f0| 4e 44 0d 09 09 09 45 4c | 53 45 0d 09 09 09 09 74 |ND....EL|SE.....t|
|00001200| 68 65 57 6f 72 6c 64 2e | 68 61 73 43 6f 6c 6f 72 |heWorld.|hasColor|
|00001210| 51 44 3a 3d 66 61 6c 73 | 65 3b 0d 09 09 09 7b 20 |QD:=fals|e;....{ |
|00001220| 65 6e 64 2d 6f 66 2d 68 | 61 63 6b 20 7d 0d 09 09 |end-of-h|ack }...|
|00001230| 09 0d 09 09 09 53 65 74 | 50 6f 72 74 28 63 75 72 |.....Set|Port(cur|
|00001240| 50 6f 72 74 29 3b 0d 09 | 09 09 0d 09 09 09 4c 4d |Port);..|......LM|
|00001250| 53 65 74 53 79 73 46 6f | 6e 74 46 61 6d 28 63 75 |SetSysFo|ntFam(cu|
|00001260| 72 50 6f 72 74 5e 2e 74 | 78 46 6f 6e 74 29 3b 0d |rPort^.t|xFont);.|
|00001270| 09 09 09 4c 4d 53 65 74 | 53 79 73 46 6f 6e 74 53 |...LMSet|SysFontS|
|00001280| 69 7a 65 28 63 75 72 50 | 6f 72 74 5e 2e 74 78 53 |ize(curP|ort^.txS|
|00001290| 69 7a 65 29 3b 0d 09 09 | 09 4c 4d 53 65 74 4c 61 |ize);...|.LMSetLa|
|000012a0| 73 74 53 50 45 78 74 72 | 61 28 6c 6f 6e 67 69 6e |stSPExtr|a(longin|
|000012b0| 74 28 2d 31 29 29 3b 0d | 09 09 09 45 4e 44 3b 0d |t(-1));.|...END;.|
|000012c0| 09 09 0d 09 09 49 46 20 | 28 70 6f 70 75 70 49 74 |.....IF |(popupIt|
|000012d0| 65 6d 20 3e 20 30 29 20 | 54 48 45 4e 20 42 45 47 |em > 0) |THEN BEG|
|000012e0| 49 4e 0d 09 09 09 47 65 | 74 49 74 65 6d 4d 61 72 |IN....Ge|tItemMar|
|000012f0| 6b 28 74 68 65 4d 65 6e | 75 2c 20 70 6f 70 75 70 |k(theMen|u, popup|
|00001300| 49 74 65 6d 2c 20 69 74 | 65 6d 4d 61 72 6b 29 3b |Item, it|emMark);|
|00001310| 0d 09 09 09 49 46 20 75 | 73 65 57 46 6f 6e 74 20 |....IF u|seWFont |
|00001320| 54 48 45 4e 0d 09 09 09 | 09 53 65 74 49 74 65 6d |THEN....|.SetItem|
|00001330| 4d 61 72 6b 28 74 68 65 | 4d 65 6e 75 2c 20 70 6f |Mark(the|Menu, po|
|00001340| 70 75 70 49 74 65 6d 2c | 20 27 2a 27 29 0d 09 09 |pupItem,| '*')...|
|00001350| 09 45 4c 53 45 0d 09 09 | 09 09 53 65 74 49 74 65 |.ELSE...|..SetIte|
|00001360| 6d 4d 61 72 6b 28 74 68 | 65 4d 65 6e 75 2c 20 70 |mMark(th|eMenu, p|
|00001370| 6f 70 75 70 49 74 65 6d | 2c 20 63 68 61 72 28 63 |opupItem|, char(c|
|00001380| 68 65 63 6b 4d 61 72 6b | 29 29 3b 0d 09 09 45 4e |heckMark|));...EN|
|00001390| 44 3b 0d 09 09 0d 09 09 | 43 61 6c 63 4d 65 6e 75 |D;......|CalcMenu|
|000013a0| 53 69 7a 65 28 74 68 65 | 4d 65 6e 75 29 3b 0d 09 |Size(the|Menu);..|
|000013b0| 09 69 74 65 6d 20 3a 3d | 20 50 6f 70 55 70 4d 65 |.item :=| PopUpMe|
|000013c0| 6e 75 53 65 6c 65 63 74 | 28 74 68 65 4d 65 6e 75 |nuSelect|(theMenu|
|000013d0| 2c 20 70 6f 70 50 74 2e | 76 2c 20 70 6f 70 50 74 |, popPt.|v, popPt|
|000013e0| 2e 68 2c 20 70 6f 70 75 | 70 49 74 65 6d 29 3b 0d |.h, popu|pItem);.|
|000013f0| 09 09 0d 09 09 49 46 20 | 28 70 6f 70 75 70 49 74 |.....IF |(popupIt|
|00001400| 65 6d 20 3e 20 30 29 20 | 54 48 45 4e 0d 09 09 09 |em > 0) |THEN....|
|00001410| 53 65 74 49 74 65 6d 4d | 61 72 6b 28 74 68 65 4d |SetItemM|ark(theM|
|00001420| 65 6e 75 2c 20 70 6f 70 | 75 70 49 74 65 6d 2c 20 |enu, pop|upItem, |
|00001430| 69 74 65 6d 4d 61 72 6b | 29 3b 0d 09 09 09 0d 09 |itemMark|);......|
|00001440| 09 49 46 20 75 73 65 57 | 46 6f 6e 74 20 54 48 45 |.IF useW|Font THE|
|00001450| 4e 20 42 45 47 49 4e 0d | 09 09 09 7b 20 70 61 72 |N BEGIN.|...{ par|
|00001460| 74 20 32 20 6f 66 20 68 | 61 63 6b 20 7d 0d 09 09 |t 2 of h|ack }...|
|00001470| 09 53 65 74 50 6f 72 74 | 28 77 4d 67 72 50 6f 72 |.SetPort|(wMgrPor|
|00001480| 74 29 3b 0d 09 09 09 54 | 65 78 74 46 6f 6e 74 28 |t);....T|extFont(|
|00001490| 6f 6c 64 57 4d 67 72 46 | 6f 6e 74 29 3b 0d 09 09 |oldWMgrF|ont);...|
|000014a0| 09 54 65 78 74 53 69 7a | 65 28 6f 6c 64 57 4d 67 |.TextSiz|e(oldWMg|
|000014b0| 72 46 6f 6e 74 29 3b 0d | 09 09 09 49 46 20 74 68 |rFont);.|...IF th|
|000014c0| 65 57 6f 72 6c 64 2e 68 | 61 73 43 6f 6c 6f 72 51 |eWorld.h|asColorQ|
|000014d0| 44 20 54 48 45 4e 20 42 | 45 47 49 4e 0d 09 09 09 |D THEN B|EGIN....|
|000014e0| 09 53 65 74 50 6f 72 74 | 28 47 72 61 66 50 74 72 |.SetPort|(GrafPtr|
|000014f0| 28 77 4d 67 72 43 50 6f | 72 74 29 29 3b 0d 09 09 |(wMgrCPo|rt));...|
|00001500| 09 09 54 65 78 74 46 6f | 6e 74 28 6f 6c 64 43 57 |..TextFo|nt(oldCW|
|00001510| 4d 67 72 46 6f 6e 74 29 | 3b 0d 09 09 09 09 54 65 |MgrFont)|;.....Te|
|00001520| 78 74 53 69 7a 65 28 6f | 6c 64 43 57 4d 67 72 53 |xtSize(o|ldCWMgrS|
|00001530| 69 7a 65 29 3b 0d 09 09 | 09 45 4e 44 3b 0d 09 09 |ize);...|.END;...|
|00001540| 09 7b 20 65 6e 64 2d 6f | 66 2d 68 61 63 6b 2d 70 |.{ end-o|f-hack-p|
|00001550| 61 72 74 2d 32 20 7d 0d | 0d 09 09 09 53 65 74 50 |art-2 }.|....SetP|
|00001560| 6f 72 74 28 63 75 72 50 | 6f 72 74 29 3b 0d 09 09 |ort(curP|ort);...|
|00001570| 09 0d 09 09 09 4c 4d 53 | 65 74 53 79 73 46 6f 6e |.....LMS|etSysFon|
|00001580| 74 53 69 7a 65 28 6f 6c | 64 53 79 73 53 69 7a 65 |tSize(ol|dSysSize|
|00001590| 29 3b 0d 09 09 09 4c 4d | 53 65 74 53 79 73 46 6f |);....LM|SetSysFo|
|000015a0| 6e 74 46 61 6d 28 6f 6c | 64 53 79 73 46 6f 6e 74 |ntFam(ol|dSysFont|
|000015b0| 29 3b 0d 09 09 09 4c 4d | 53 65 74 4c 61 73 74 53 |);....LM|SetLastS|
|000015c0| 50 45 78 74 72 61 28 6c | 6f 6e 67 69 6e 74 28 2d |PExtra(l|ongint(-|
|000015d0| 31 29 29 3b 0d 09 09 09 | 45 4e 44 3b 0d 09 09 09 |1));....|END;....|
|000015e0| 0d 09 09 50 6f 70 55 70 | 53 65 6c 65 63 74 57 69 |...PopUp|SelectWi|
|000015f0| 74 68 57 69 6e 64 6f 77 | 46 6f 6e 74 20 3a 3d 20 |thWindow|Font := |
|00001600| 69 74 65 6d 3b 0d 09 45 | 4e 44 3b 0d 0d 09 50 52 |item;..E|ND;...PR|
|00001610| 4f 43 45 44 55 52 45 20 | 48 61 6e 64 6c 65 4d 6f |OCEDURE |HandleMo|
|00001620| 75 73 65 44 6f 77 6e 20 | 28 74 68 65 44 69 61 6c |useDown |(theDial|
|00001630| 6f 67 3a 44 69 61 6c 6f | 67 50 74 72 3b 20 69 74 |og:Dialo|gPtr; it|
|00001640| 65 6d 48 69 74 3a 20 69 | 6e 74 65 67 65 72 29 3b |emHit: i|nteger);|
|00001650| 0d 09 09 56 41 52 0d 09 | 09 09 74 68 65 47 6c 6f |...VAR..|..theGlo|
|00001660| 62 61 6c 73 3a 20 44 69 | 61 6c 6f 67 47 6c 6f 62 |bals: Di|alogGlob|
|00001670| 61 6c 73 50 74 72 3b 0d | 09 09 09 69 54 79 70 65 |alsPtr;.|...iType|
|00001680| 3a 20 69 6e 74 65 67 65 | 72 3b 0d 09 09 09 69 52 |: intege|r;....iR|
|00001690| 65 63 74 3a 20 52 65 63 | 74 3b 0d 09 09 09 69 48 |ect: Rec|t;....iH|
|000016a0| 61 6e 64 6c 65 3a 20 48 | 61 6e 64 6c 65 3b 0d 09 |andle: H|andle;..|
|000016b0| 09 09 70 6f 70 75 70 52 | 65 63 74 3a 20 52 65 63 |..popupR|ect: Rec|
|000016c0| 74 3b 0d 09 09 09 70 6f | 70 75 70 52 65 73 75 6c |t;....po|pupResul|
|000016d0| 74 3a 69 6e 74 65 67 65 | 72 3b 0d 09 09 09 6d 65 |t:intege|r;....me|
|000016e0| 6e 75 49 44 3a 69 6e 74 | 65 67 65 72 3b 0d 09 09 |nuID:int|eger;...|
|000016f0| 42 45 47 49 4e 0d 09 09 | 09 74 68 65 47 6c 6f 62 |BEGIN...|.theGlob|
|00001700| 61 6c 73 20 3a 3d 20 44 | 69 61 6c 6f 67 47 6c 6f |als := D|ialogGlo|
|00001710| 62 61 6c 73 50 74 72 28 | 47 65 74 57 52 65 66 43 |balsPtr(|GetWRefC|
|00001720| 6f 6e 28 74 68 65 44 69 | 61 6c 6f 67 29 29 3b 0d |on(theDi|alog));.|
|00001730| 09 09 09 6d 65 6e 75 49 | 44 20 3a 3d 20 49 74 65 |...menuI|D := Ite|
|00001740| 6d 54 6f 4d 65 6e 75 49 | 44 28 69 74 65 6d 48 69 |mToMenuI|D(itemHi|
|00001750| 74 29 3b 0d 09 09 09 43 | 41 53 45 20 69 74 65 6d |t);....C|ASE item|
|00001760| 48 69 74 20 4f 46 0d 09 | 09 09 09 70 6f 70 75 70 |Hit OF..|...popup|
|00001770| 31 49 74 65 6d 2c 20 70 | 6f 70 75 70 32 49 74 65 |1Item, p|opup2Ite|
|00001780| 6d 3a 20 20 42 45 47 49 | 4e 0d 09 09 09 09 09 09 |m: BEGI|N.......|
|00001790| 47 65 74 44 69 61 6c 6f | 67 49 74 65 6d 28 74 68 |GetDialo|gItem(th|
|000017a0| 65 44 69 61 6c 6f 67 2c | 20 69 74 65 6d 48 69 74 |eDialog,| itemHit|
|000017b0| 2c 20 69 54 79 70 65 2c | 20 69 48 61 6e 64 6c 65 |, iType,| iHandle|
|000017c0| 2c 20 69 52 65 63 74 29 | 3b 0d 09 09 09 09 09 09 |, iRect)|;.......|
|000017d0| 53 65 74 52 65 63 74 28 | 70 6f 70 75 70 52 65 63 |SetRect(|popupRec|
|000017e0| 74 2c 20 69 52 65 63 74 | 2e 6c 65 66 74 20 2c 20 |t, iRect|.left , |
|000017f0| 69 52 65 63 74 2e 74 6f | 70 2c 20 69 52 65 63 74 |iRect.to|p, iRect|
|00001800| 2e 6c 65 66 74 20 2b 20 | 74 68 65 47 6c 6f 62 61 |.left + |theGloba|
|00001810| 6c 73 5e 2e 6d 65 6e 75 | 73 5b 6d 65 6e 75 49 44 |ls^.menu|s[menuID|
|00001820| 5d 2e 68 4d 65 6e 75 5e | 5e 2e 6d 65 6e 75 57 69 |].hMenu^|^.menuWi|
|00001830| 64 74 68 20 2b 20 34 2c | 20 69 52 65 63 74 2e 62 |dth + 4,| iRect.b|
|00001840| 6f 74 74 6f 6d 20 2b 20 | 32 29 3b 0d 09 09 09 09 |ottom + |2);.....|
|00001850| 09 09 4c 6f 63 61 6c 54 | 6f 47 6c 6f 62 61 6c 28 |..LocalT|oGlobal(|
|00001860| 70 6f 70 75 70 52 65 63 | 74 2e 74 6f 70 4c 65 66 |popupRec|t.topLef|
|00001870| 74 29 3b 0d 09 09 09 09 | 09 09 4c 6f 63 61 6c 54 |t);.....|..LocalT|
|00001880| 6f 47 6c 6f 62 61 6c 28 | 70 6f 70 75 70 52 65 63 |oGlobal(|popupRec|
|00001890| 74 2e 62 6f 74 52 69 67 | 68 74 29 3b 0d 09 09 09 |t.botRig|ht);....|
|000018a0| 09 09 09 49 6e 73 65 74 | 52 65 63 74 28 69 52 65 |...Inset|Rect(iRe|
|000018b0| 63 74 2c 20 31 2c 20 31 | 29 3b 0d 09 09 09 09 09 |ct, 1, 1|);......|
|000018c0| 09 7b 49 6e 76 65 72 74 | 52 65 63 74 28 69 52 65 |.{Invert|Rect(iRe|
|000018d0| 63 74 29 3b 7d 0d 0d 09 | 09 09 09 09 09 49 46 20 |ct);}...|.....IF |
|000018e0| 74 68 65 47 6c 6f 62 61 | 6c 73 5e 2e 6d 65 6e 75 |theGloba|ls^.menu|
|000018f0| 73 5b 6d 65 6e 75 49 44 | 5d 2e 73 6d 61 6c 6c 46 |s[menuID|].smallF|
|00001900| 6f 6e 74 20 54 48 45 4e | 20 42 45 47 49 4e 0d 09 |ont THEN| BEGIN..|
|00001910| 09 09 09 09 09 09 54 65 | 78 74 46 6f 6e 74 28 67 |......Te|xtFont(g|
|00001920| 65 6e 65 76 61 29 3b 0d | 09 09 09 09 09 09 09 54 |eneva);.|.......T|
|00001930| 65 78 74 53 69 7a 65 28 | 39 29 3b 0d 09 09 09 09 |extSize(|9);.....|
|00001940| 09 09 09 45 4e 44 3b 0d | 09 09 09 09 09 09 70 6f |...END;.|......po|
|00001950| 70 75 70 52 65 73 75 6c | 74 20 3a 3d 20 50 6f 70 |pupResul|t := Pop|
|00001960| 55 70 53 65 6c 65 63 74 | 57 69 74 68 57 69 6e 64 |UpSelect|WithWind|
|00001970| 6f 77 46 6f 6e 74 28 74 | 68 65 47 6c 6f 62 61 6c |owFont(t|heGlobal|
|00001980| 73 5e 2e 6d 65 6e 75 73 | 5b 6d 65 6e 75 49 44 5d |s^.menus|[menuID]|
|00001990| 2e 68 4d 65 6e 75 2c 20 | 70 6f 70 75 70 52 65 63 |.hMenu, |popupRec|
|000019a0| 74 2e 74 6f 70 4c 65 66 | 74 2c 20 74 68 65 47 6c |t.topLef|t, theGl|
|000019b0| 6f 62 61 6c 73 5e 2e 6d | 65 6e 75 73 5b 6d 65 6e |obals^.m|enus[men|
|000019c0| 75 49 44 5d 2e 73 65 6c | 65 63 74 65 64 49 74 65 |uID].sel|ectedIte|
|000019d0| 6d 2c 20 74 68 65 47 6c | 6f 62 61 6c 73 5e 2e 6d |m, theGl|obals^.m|
|000019e0| 65 6e 75 73 5b 6d 65 6e | 75 49 44 5d 2e 73 6d 61 |enus[men|uID].sma|
|000019f0| 6c 6c 46 6f 6e 74 29 3b | 0d 09 09 09 09 09 09 49 |llFont);|.......I|
|00001a00| 46 20 74 68 65 47 6c 6f | 62 61 6c 73 5e 2e 6d 65 |F theGlo|bals^.me|
|00001a10| 6e 75 73 5b 6d 65 6e 75 | 49 44 5d 2e 73 6d 61 6c |nus[menu|ID].smal|
|00001a20| 6c 46 6f 6e 74 20 54 48 | 45 4e 20 42 45 47 49 4e |lFont TH|EN BEGIN|
|00001a30| 0d 09 09 09 09 09 09 09 | 54 65 78 74 53 69 7a 65 |........|TextSize|
|00001a40| 28 30 29 3b 0d 09 09 09 | 09 09 09 09 54 65 78 74 |(0);....|....Text|
|00001a50| 46 6f 6e 74 28 30 29 3b | 0d 09 09 09 09 09 09 09 |Font(0);|........|
|00001a60| 45 4e 44 3b 0d 0d 09 09 | 09 09 09 09 7b 49 6e 76 |END;....|....{Inv|
|00001a70| 65 72 74 52 65 63 74 28 | 69 52 65 63 74 29 3b 7d |ertRect(|iRect);}|
|00001a80| 0d 09 09 09 09 09 09 49 | 46 20 28 70 6f 70 75 70 |.......I|F (popup|
|00001a90| 52 65 73 75 6c 74 20 3e | 20 30 29 20 41 4e 44 20 |Result >| 0) AND |
|00001aa0| 28 4c 6f 57 6f 72 64 28 | 70 6f 70 75 70 52 65 73 |(LoWord(|popupRes|
|00001ab0| 75 6c 74 29 20 3c 3e 20 | 74 68 65 47 6c 6f 62 61 |ult) <> |theGloba|
|00001ac0| 6c 73 5e 2e 6d 65 6e 75 | 73 5b 6d 65 6e 75 49 44 |ls^.menu|s[menuID|
|00001ad0| 5d 2e 73 65 6c 65 63 74 | 65 64 49 74 65 6d 29 20 |].select|edItem) |
|00001ae0| 54 48 45 4e 20 42 45 47 | 49 4e 0d 09 09 09 09 09 |THEN BEG|IN......|
|00001af0| 09 09 09 43 68 65 63 6b | 49 74 65 6d 28 74 68 65 |...Check|Item(the|
|00001b00| 47 6c 6f 62 61 6c 73 5e | 2e 6d 65 6e 75 73 5b 6d |Globals^|.menus[m|
|00001b10| 65 6e 75 49 44 5d 2e 68 | 4d 65 6e 75 2c 20 74 68 |enuID].h|Menu, th|
|00001b20| 65 47 6c 6f 62 61 6c 73 | 5e 2e 6d 65 6e 75 73 5b |eGlobals|^.menus[|
|00001b30| 6d 65 6e 75 49 44 5d 2e | 73 65 6c 65 63 74 65 64 |menuID].|selected|
|00001b40| 49 74 65 6d 2c 20 46 61 | 6c 73 65 29 3b 0d 09 09 |Item, Fa|lse);...|
|00001b50| 09 09 09 09 09 09 74 68 | 65 47 6c 6f 62 61 6c 73 |......th|eGlobals|
|00001b60| 5e 2e 6d 65 6e 75 73 5b | 6d 65 6e 75 49 44 5d 2e |^.menus[|menuID].|
|00001b70| 73 65 6c 65 63 74 65 64 | 49 74 65 6d 20 3a 3d 20 |selected|Item := |
|00001b80| 4c 6f 57 6f 72 64 28 70 | 6f 70 75 70 52 65 73 75 |LoWord(p|opupResu|
|00001b90| 6c 74 29 3b 0d 09 09 09 | 09 09 09 09 09 55 70 64 |lt);....|.....Upd|
|00001ba0| 61 74 65 50 6f 70 55 70 | 28 74 68 65 44 69 61 6c |atePopUp|(theDial|
|00001bb0| 6f 67 2c 20 69 74 65 6d | 48 69 74 29 3b 0d 09 09 |og, item|Hit);...|
|00001bc0| 09 09 09 09 09 45 4e 44 | 3b 0d 09 09 09 09 09 45 |.....END|;......E|
|00001bd0| 4e 44 3b 0d 09 09 09 09 | 4f 54 48 45 52 57 49 53 |ND;.....|OTHERWIS|
|00001be0| 45 0d 09 09 09 09 09 3b | 0d 09 09 09 45 4e 44 3b |E......;|....END;|
|00001bf0| 0d 09 09 45 4e 44 3b 0d | 0d 09 50 52 4f 43 45 44 |...END;.|..PROCED|
|00001c00| 55 52 45 20 48 61 6e 64 | 6c 65 45 76 65 6e 74 73 |URE Hand|leEvents|
|00001c10| 20 28 74 68 65 44 69 61 | 6c 6f 67 3a 44 69 61 6c | (theDia|log:Dial|
|00001c20| 6f 67 50 74 72 29 3b 0d | 09 09 56 41 52 0d 09 09 |ogPtr);.|..VAR...|
|00001c30| 09 74 68 65 47 6c 6f 62 | 61 6c 73 3a 20 44 69 61 |.theGlob|als: Dia|
|00001c40| 6c 6f 67 47 6c 6f 62 61 | 6c 73 50 74 72 3b 0d 09 |logGloba|lsPtr;..|
|00001c50| 09 09 65 76 65 6e 74 4f | 63 63 75 72 65 64 3a 20 |..eventO|ccured: |
|00001c60| 62 6f 6f 6c 65 61 6e 3b | 0d 09 09 09 74 68 65 45 |boolean;|....theE|
|00001c70| 72 72 3a 20 6c 6f 6e 67 | 69 6e 74 3b 0d 09 09 09 |rr: long|int;....|
|00001c80| 53 68 69 66 74 55 73 65 | 64 2c 20 43 6d 64 4b 65 |ShiftUse|d, CmdKe|
|00001c90| 79 55 73 65 64 2c 20 42 | 61 64 4b 65 79 3a 20 62 |yUsed, B|adKey: b|
|00001ca0| 6f 6f 6c 65 61 6e 3b 0d | 09 09 09 69 74 65 6d 48 |oolean;.|...itemH|
|00001cb0| 69 74 3a 20 69 6e 74 65 | 67 65 72 3b 0d 09 09 09 |it: inte|ger;....|
|00001cc0| 74 68 65 45 76 65 6e 74 | 3a 20 45 76 65 6e 74 52 |theEvent|: EventR|
|00001cd0| 65 63 6f 72 64 3b 0d 09 | 09 09 74 68 65 50 6f 69 |ecord;..|..thePoi|
|00001ce0| 6e 74 3a 20 50 6f 69 6e | 74 3b 0d 09 09 09 74 68 |nt: Poin|t;....th|
|00001cf0| 65 4b 65 79 3a 20 69 6e | 74 65 67 65 72 3b 0d 09 |eKey: in|teger;..|
|00001d00| 09 09 77 68 69 63 68 57 | 69 6e 64 6f 77 3a 20 57 |..whichW|indow: W|
|00001d10| 69 6e 64 6f 77 50 74 72 | 3b 09 09 09 7b 20 44 75 |indowPtr|;...{ Du|
|00001d20| 6d 6d 79 2c 63 61 75 73 | 65 20 77 65 20 68 61 76 |mmy,caus|e we hav|
|00001d30| 65 20 6e 6f 20 77 69 6e | 64 6f 77 73 7d 0d 09 09 |e no win|dows}...|
|00001d40| 09 77 69 6e 64 6f 77 4c | 6f 63 3a 20 69 6e 74 65 |.windowL|oc: inte|
|00001d50| 67 65 72 3b 0d 09 09 09 | 6d 61 74 63 68 65 64 49 |ger;....|matchedI|
|00001d60| 74 65 6d 3a 20 6c 6f 6e | 67 69 6e 74 3b 0d 09 09 |tem: lon|gint;...|
|00001d70| 09 6d 65 6e 75 4e 75 6d | 3a 20 49 6e 74 65 67 65 |.menuNum|: Intege|
|00001d80| 72 3b 09 09 09 09 7b 20 | 52 65 73 20 49 44 20 6f |r;....{ |Res ID o|
|00001d90| 66 20 74 68 65 20 6d 65 | 6e 75 20 53 65 6c 65 63 |f the me|nu Selec|
|00001da0| 74 65 64 09 7d 0d 09 09 | 09 69 74 65 6d 4e 75 6d |ted.}...|.itemNum|
|00001db0| 3a 20 49 6e 74 65 67 65 | 72 3b 09 09 09 09 7b 20 |: Intege|r;....{ |
|00001dc0| 54 68 65 20 69 74 65 6d | 20 6e 75 6d 62 65 72 20 |The item| number |
|00001dd0| 73 65 6c 65 63 74 65 64 | 09 7d 0d 09 42 45 47 49 |selected|.}..BEGI|
|00001de0| 4e 0d 09 09 09 74 68 65 | 47 6c 6f 62 61 6c 73 20 |N....the|Globals |
|00001df0| 3a 3d 20 44 69 61 6c 6f | 67 47 6c 6f 62 61 6c 73 |:= Dialo|gGlobals|
|00001e00| 50 74 72 28 47 65 74 57 | 52 65 66 43 6f 6e 28 74 |Ptr(GetW|RefCon(t|
|00001e10| 68 65 44 69 61 6c 6f 67 | 29 29 3b 0d 09 09 09 52 |heDialog|));....R|
|00001e20| 45 50 45 41 54 0d 09 09 | 09 09 65 76 65 6e 74 4f |EPEAT...|..eventO|
|00001e30| 63 63 75 72 65 64 20 3a | 3d 20 47 65 74 4e 65 78 |ccured :|= GetNex|
|00001e40| 74 45 76 65 6e 74 28 65 | 76 65 72 79 45 76 65 6e |tEvent(e|veryEven|
|00001e50| 74 2c 20 74 68 65 45 76 | 65 6e 74 29 3b 0d 09 09 |t, theEv|ent);...|
|00001e60| 09 09 49 46 20 65 76 65 | 6e 74 4f 63 63 75 72 65 |..IF eve|ntOccure|
|00001e70| 64 20 54 48 45 4e 20 42 | 45 47 49 4e 0d 09 09 09 |d THEN B|EGIN....|
|00001e80| 09 09 49 46 20 49 73 44 | 69 61 6c 6f 67 45 76 65 |..IF IsD|ialogEve|
|00001e90| 6e 74 28 74 68 65 45 76 | 65 6e 74 29 20 54 48 45 |nt(theEv|ent) THE|
|00001ea0| 4e 0d 09 09 09 09 09 09 | 49 46 20 20 44 69 61 6c |N.......|IF Dial|
|00001eb0| 6f 67 53 65 6c 65 63 74 | 28 74 68 65 45 76 65 6e |ogSelect|(theEven|
|00001ec0| 74 2c 20 44 69 61 6c 6f | 67 50 74 72 28 77 68 69 |t, Dialo|gPtr(whi|
|00001ed0| 63 68 57 69 6e 64 6f 77 | 29 2c 20 69 74 65 6d 48 |chWindow|), itemH|
|00001ee0| 69 74 29 20 54 48 45 4e | 20 0d 09 09 09 09 09 09 |it) THEN| .......|
|00001ef0| 09 48 61 6e 64 6c 65 4d | 6f 75 73 65 44 6f 77 6e |.HandleM|ouseDown|
|00001f00| 28 44 69 61 6c 6f 67 50 | 74 72 28 77 68 69 63 68 |(DialogP|tr(which|
|00001f10| 57 69 6e 64 6f 77 29 2c | 20 69 74 65 6d 48 69 74 |Window),| itemHit|
|00001f20| 29 3b 0d 09 09 09 09 09 | 43 41 53 45 20 74 68 65 |);......|CASE the|
|00001f30| 45 76 65 6e 74 2e 77 68 | 61 74 20 4f 46 0d 09 09 |Event.wh|at OF...|
|00001f40| 09 09 09 09 6b 65 79 44 | 6f 77 6e 2c 20 61 75 74 |....keyD|own, aut|
|00001f50| 6f 4b 65 79 3a 7b 20 61 | 6e 79 20 6b 65 79 20 64 |oKey:{ a|ny key d|
|00001f60| 6f 77 6e 21 20 7d 0d 09 | 09 09 09 09 09 09 42 45 |own! }..|......BE|
|00001f70| 47 49 4e 0d 09 09 09 09 | 09 09 09 09 74 68 65 4b |GIN.....|....theK|
|00001f80| 65 79 20 3a 3d 20 42 69 | 74 41 6e 64 28 74 68 65 |ey := Bi|tAnd(the|
|00001f90| 45 76 65 6e 74 2e 6d 65 | 73 73 61 67 65 2c 20 63 |Event.me|ssage, c|
|00001fa0| 68 61 72 43 6f 64 65 4d | 61 73 6b 29 3b 09 09 7b |harCodeM|ask);..{|
|00001fb0| 20 64 65 63 6f 64 65 20 | 63 68 61 72 20 7d 0d 09 | decode |char }..|
|00001fc0| 09 09 09 09 09 09 09 43 | 6d 64 4b 65 79 55 73 65 |.......C|mdKeyUse|
|00001fd0| 64 20 3a 3d 20 28 42 69 | 74 41 6e 64 28 74 68 65 |d := (Bi|tAnd(the|
|00001fe0| 45 76 65 6e 74 2e 6d 6f | 64 69 66 69 65 72 73 2c |Event.mo|difiers,|
|00001ff0| 20 63 6d 64 4b 65 79 29 | 20 3c 3e 20 30 29 3b 09 | cmdKey)| <> 0);.|
|00002000| 7b 20 63 6d 64 20 6b 65 | 79 20 64 6f 77 6e 3f 20 |{ cmd ke|y down? |
|00002010| 7d 0d 09 09 09 09 09 09 | 09 09 53 68 69 66 74 55 |}.......|..ShiftU|
|00002020| 73 65 64 20 3a 3d 20 28 | 42 69 74 41 6e 64 28 74 |sed := (|BitAnd(t|
|00002030| 68 65 45 76 65 6e 74 2e | 6d 6f 64 69 66 69 65 72 |heEvent.|modifier|
|00002040| 73 2c 20 73 68 69 66 74 | 4b 65 79 29 20 3c 3e 20 |s, shift|Key) <> |
|00002050| 30 29 3b 09 09 7b 20 73 | 68 69 66 74 20 6b 65 79 |0);..{ s|hift key|
|00002060| 20 64 6f 77 6e 3f 20 7d | 0d 09 09 09 09 09 09 09 | down? }|........|
|00002070| 09 43 41 53 45 20 74 68 | 65 4b 65 79 20 4f 46 0d |.CASE th|eKey OF.|
|00002080| 09 09 09 09 09 09 09 09 | 09 65 6e 74 65 72 4b 65 |........|.enterKe|
|00002090| 79 2c 20 43 52 3a 09 7b | 20 4f 4b 20 42 75 74 74 |y, CR:.{| OK Butt|
|000020a0| 6f 6e 20 65 71 75 69 76 | 61 6c 65 6e 74 73 20 7d |on equiv|alents }|
|000020b0| 0d 09 09 09 09 09 09 09 | 09 09 09 42 45 47 49 4e |........|...BEGIN|
|000020c0| 0d 09 09 09 09 09 09 09 | 09 09 09 09 69 74 65 6d |........|....item|
|000020d0| 48 69 74 20 3a 3d 20 6f | 6b 3b 0d 09 09 09 09 09 |Hit := o|k;......|
|000020e0| 09 09 09 09 09 09 46 61 | 6b 65 43 6c 69 63 6b 28 |......Fa|keClick(|
|000020f0| 74 68 65 44 69 61 6c 6f | 67 2c 20 69 74 65 6d 48 |theDialo|g, itemH|
|00002100| 69 74 29 3b 0d 09 09 09 | 09 09 09 09 09 09 09 45 |it);....|.......E|
|00002110| 4e 44 3b 0d 09 09 09 09 | 09 09 09 09 09 4f 54 48 |ND;.....|.....OTH|
|00002120| 45 52 57 49 53 45 0d 09 | 09 09 09 09 09 09 09 09 |ERWISE..|........|
|00002130| 09 49 46 20 43 6d 64 4b | 65 79 55 73 65 64 20 26 |.IF CmdK|eyUsed &|
|00002140| 20 28 74 68 65 4b 65 79 | 20 3d 20 70 65 72 69 6f | (theKey| = perio|
|00002150| 64 4b 65 79 29 20 54 48 | 45 4e 20 42 45 47 49 4e |dKey) TH|EN BEGIN|
|00002160| 0d 09 09 09 09 09 09 09 | 09 09 09 09 09 46 61 6b |........|.....Fak|
|00002170| 65 43 6c 69 63 6b 28 74 | 68 65 44 69 61 6c 6f 67 |eClick(t|heDialog|
|00002180| 2c 20 63 61 6e 63 65 6c | 29 3b 0d 09 09 09 09 09 |, cancel|);......|
|00002190| 09 09 09 09 09 09 09 69 | 74 65 6d 48 69 74 20 3a |.......i|temHit :|
|000021a0| 3d 20 63 61 6e 63 65 6c | 3b 0d 09 09 09 09 09 09 |= cancel|;.......|
|000021b0| 09 09 09 09 45 4e 44 20 | 45 4c 53 45 20 42 45 47 |....END |ELSE BEG|
|000021c0| 49 4e 0d 09 09 09 09 09 | 09 09 09 09 09 09 09 6d |IN......|.......m|
|000021d0| 61 74 63 68 65 64 49 74 | 65 6d 20 3a 3d 20 4d 44 |atchedIt|em := MD|
|000021e0| 45 46 5f 4d 65 6e 75 4b | 65 79 28 74 68 65 45 76 |EF_MenuK|ey(theEv|
|000021f0| 65 6e 74 2e 6d 65 73 73 | 61 67 65 2c 20 74 68 65 |ent.mess|age, the|
|00002200| 45 76 65 6e 74 2e 6d 6f | 64 69 66 69 65 72 73 2c |Event.mo|difiers,|
|00002210| 20 74 68 65 47 6c 6f 62 | 61 6c 73 5e 2e 6d 65 6e | theGlob|als^.men|
|00002220| 75 73 5b 6e 6f 72 6d 61 | 6c 50 6f 70 75 70 49 44 |us[norma|lPopupID|
|00002230| 5d 2e 68 4d 65 6e 75 29 | 3b 0d 09 09 09 09 09 09 |].hMenu)|;.......|
|00002240| 09 09 09 09 09 09 49 46 | 20 28 6d 61 74 63 68 65 |......IF| (matche|
|00002250| 64 49 74 65 6d 20 3e 20 | 30 29 20 54 48 45 4e 20 |dItem > |0) THEN |
|00002260| 42 45 47 49 4e 20 0d 09 | 09 09 09 09 09 09 09 09 |BEGIN ..|........|
|00002270| 09 09 09 09 6d 65 6e 75 | 4e 75 6d 20 3a 3d 20 48 |....menu|Num := H|
|00002280| 69 57 72 64 28 6d 61 74 | 63 68 65 64 49 74 65 6d |iWrd(mat|chedItem|
|00002290| 29 3b 09 7b 20 67 65 74 | 20 74 68 65 20 6d 65 6e |);.{ get| the men|
|000022a0| 75 20 6e 75 6d 62 65 72 | 09 09 7d 0d 09 09 09 09 |u number|..}.....|
|000022b0| 09 09 09 09 09 09 09 09 | 09 69 74 65 6d 4e 75 6d |........|.itemNum|
|000022c0| 20 3a 3d 20 4c 6f 57 72 | 64 28 6d 61 74 63 68 65 | := LoWr|d(matche|
|000022d0| 64 49 74 65 6d 29 3b 09 | 7b 20 67 65 74 20 74 68 |dItem);.|{ get th|
|000022e0| 65 20 69 74 65 6d 20 6e | 75 6d 62 65 72 09 09 7d |e item n|umber..}|
|000022f0| 0d 09 09 09 09 09 09 09 | 09 09 09 09 09 09 49 46 |........|......IF|
|00002300| 20 6d 65 6e 75 4e 75 6d | 20 3d 20 6e 6f 72 6d 61 | menuNum| = norma|
|00002310| 6c 50 6f 70 75 70 49 44 | 20 54 48 45 4e 20 42 45 |lPopupID| THEN BE|
|00002320| 47 49 4e 0d 09 09 09 09 | 09 09 09 09 09 09 09 09 |GIN.....|........|
|00002330| 09 09 74 68 65 47 6c 6f | 62 61 6c 73 5e 2e 6d 65 |..theGlo|bals^.me|
|00002340| 6e 75 73 5b 6d 65 6e 75 | 4e 75 6d 5d 2e 73 65 6c |nus[menu|Num].sel|
|00002350| 65 63 74 65 64 49 74 65 | 6d 20 3a 3d 20 69 74 65 |ectedIte|m := ite|
|00002360| 6d 4e 75 6d 3b 0d 09 09 | 09 09 09 09 09 09 09 09 |mNum;...|........|
|00002370| 09 09 09 09 55 70 64 61 | 74 65 50 6f 70 55 70 28 |....Upda|tePopUp(|
|00002380| 74 68 65 44 69 61 6c 6f | 67 2c 20 33 29 3b 0d 09 |theDialo|g, 3);..|
|00002390| 09 09 09 09 09 09 09 09 | 09 09 09 09 45 4e 44 20 |........|....END |
|000023a0| 45 4c 53 45 20 49 46 20 | 6d 65 6e 75 4e 75 6d 20 |ELSE IF |menuNum |
|000023b0| 3d 20 73 6d 61 6c 6c 50 | 6f 70 75 70 49 44 20 54 |= smallP|opupID T|
|000023c0| 48 45 4e 20 42 45 47 49 | 4e 0d 09 09 09 09 09 09 |HEN BEGI|N.......|
|000023d0| 09 09 09 09 09 09 09 09 | 74 68 65 47 6c 6f 62 61 |........|theGloba|
|000023e0| 6c 73 5e 2e 6d 65 6e 75 | 73 5b 6d 65 6e 75 4e 75 |ls^.menu|s[menuNu|
|000023f0| 6d 5d 2e 73 65 6c 65 63 | 74 65 64 49 74 65 6d 20 |m].selec|tedItem |
|00002400| 3a 3d 20 69 74 65 6d 4e | 75 6d 3b 0d 09 09 09 09 |:= itemN|um;.....|
|00002410| 09 09 09 09 09 09 09 09 | 09 09 55 70 64 61 74 65 |........|..Update|
|00002420| 50 6f 70 55 70 28 74 68 | 65 44 69 61 6c 6f 67 2c |PopUp(th|eDialog,|
|00002430| 20 37 29 3b 0d 09 09 09 | 09 09 09 09 09 09 09 09 | 7);....|........|
|00002440| 09 09 45 4e 44 3b 0d 09 | 09 09 09 09 09 09 09 09 |..END;..|........|
|00002450| 09 09 09 45 4e 44 3b 0d | 09 09 09 09 09 09 09 09 |...END;.|........|
|00002460| 09 09 45 4e 44 3b 0d 09 | 09 09 09 09 09 09 09 45 |..END;..|.......E|
|00002470| 4e 44 3b 0d 09 09 09 09 | 09 09 09 45 4e 44 3b 0d |ND;.....|...END;.|
|00002480| 09 09 09 09 09 09 6d 6f | 75 73 65 44 6f 77 6e 3a |......mo|useDown:|
|00002490| 09 09 09 7b 20 77 65 20 | 68 61 64 20 61 20 6d 6f |...{ we |had a mo|
|000024a0| 75 73 65 2d 64 6f 77 6e | 20 74 68 65 45 76 65 6e |use-down| theEven|
|000024b0| 74 09 7d 0d 09 09 09 09 | 09 09 09 42 45 47 49 4e |t.}.....|...BEGIN|
|000024c0| 0d 09 09 09 09 09 09 09 | 09 77 69 6e 64 6f 77 4c |........|.windowL|
|000024d0| 6f 63 20 3a 3d 20 46 69 | 6e 64 57 69 6e 64 6f 77 |oc := Fi|ndWindow|
|000024e0| 28 74 68 65 45 76 65 6e | 74 2e 77 68 65 72 65 2c |(theEven|t.where,|
|000024f0| 20 77 68 69 63 68 57 69 | 6e 64 6f 77 29 3b 20 7b | whichWi|ndow); {|
|00002500| 20 66 69 6e 64 20 6f 75 | 74 20 77 68 65 72 65 20 | find ou|t where |
|00002510| 7d 0d 09 09 09 09 09 09 | 09 09 43 41 53 45 20 77 |}.......|..CASE w|
|00002520| 69 6e 64 6f 77 4c 6f 63 | 20 4f 46 09 09 7b 20 6e |indowLoc| OF..{ n|
|00002530| 6f 77 20 63 61 73 65 20 | 6f 6e 20 74 68 65 20 6c |ow case |on the l|
|00002540| 6f 63 61 74 69 6f 6e 09 | 7d 0d 09 09 09 09 09 09 |ocation.|}.......|
|00002550| 09 09 09 69 6e 4d 65 6e | 75 42 61 72 3a 20 20 42 |...inMen|uBar: B|
|00002560| 45 47 49 4e 0d 09 09 09 | 09 09 09 09 09 09 09 09 |EGIN....|........|
|00002570| 53 79 73 42 65 65 70 28 | 31 29 3b 0d 09 09 09 09 |SysBeep(|1);.....|
|00002580| 09 09 09 09 09 09 45 4e | 44 3b 0d 09 09 09 09 09 |......EN|D;......|
|00002590| 09 09 09 09 69 6e 53 79 | 73 57 69 6e 64 6f 77 3a |....inSy|sWindow:|
|000025a0| 20 0d 09 09 09 09 09 09 | 09 09 09 09 53 79 73 74 | .......|....Syst|
|000025b0| 65 6d 43 6c 69 63 6b 28 | 74 68 65 45 76 65 6e 74 |emClick(|theEvent|
|000025c0| 2c 20 77 68 69 63 68 57 | 69 6e 64 6f 77 29 3b 20 |, whichW|indow); |
|000025d0| 7b 49 74 20 77 61 73 20 | 69 6e 20 61 20 64 65 73 |{It was |in a des|
|000025e0| 6b 20 61 63 63 09 7d 0d | 09 09 09 09 09 09 09 09 |k acc.}.|........|
|000025f0| 09 69 6e 44 72 61 67 3a | 20 42 45 47 49 4e 0d 09 |.inDrag:| BEGIN..|
|00002600| 09 09 09 09 09 09 09 09 | 09 44 72 61 67 57 69 6e |........|.DragWin|
|00002610| 64 6f 77 28 77 68 69 63 | 68 57 69 6e 64 6f 77 2c |dow(whic|hWindow,|
|00002620| 20 74 68 65 45 76 65 6e | 74 2e 77 68 65 72 65 2c | theEven|t.where,|
|00002630| 20 47 65 74 47 72 61 79 | 52 67 6e 5e 5e 2e 72 67 | GetGray|Rgn^^.rg|
|00002640| 6e 42 42 6f 78 29 3b 0d | 09 09 09 09 09 09 09 09 |nBBox);.|........|
|00002650| 09 09 45 4e 44 3b 0d 09 | 09 09 09 09 09 09 09 09 |..END;..|........|
|00002660| 69 6e 43 6f 6e 74 65 6e | 74 3a 20 0d 09 09 09 09 |inConten|t: .....|
|00002670| 09 09 09 09 09 09 49 46 | 20 46 72 6f 6e 74 57 69 |......IF| FrontWi|
|00002680| 6e 64 6f 77 20 3c 3e 20 | 77 68 69 63 68 57 69 6e |ndow <> |whichWin|
|00002690| 64 6f 77 20 54 48 45 4e | 0d 09 09 09 09 09 09 09 |dow THEN|........|
|000026a0| 09 09 09 09 53 65 6c 65 | 63 74 57 69 6e 64 6f 77 |....Sele|ctWindow|
|000026b0| 28 77 68 69 63 68 57 69 | 6e 64 6f 77 29 3b 0d 09 |(whichWi|ndow);..|
|000026c0| 09 09 09 09 09 09 09 09 | 4f 54 48 45 52 57 49 53 |........|OTHERWIS|
|000026d0| 45 20 42 45 47 49 4e 0d | 09 09 09 09 09 09 09 09 |E BEGIN.|........|
|000026e0| 09 09 45 4e 44 3b 0d 09 | 09 09 09 09 09 09 09 45 |..END;..|.......E|
|000026f0| 4e 44 3b 0d 09 09 09 09 | 09 09 09 45 4e 44 3b 0d |ND;.....|...END;.|
|00002700| 09 09 09 09 09 09 4f 54 | 48 45 52 57 49 53 45 20 |......OT|HERWISE |
|00002710| 42 45 47 49 4e 0d 09 09 | 09 09 09 09 09 49 46 20 |BEGIN...|.....IF |
|00002720| 44 69 61 6c 6f 67 53 65 | 6c 65 63 74 28 74 68 65 |DialogSe|lect(the|
|00002730| 45 76 65 6e 74 2c 20 44 | 69 61 6c 6f 67 50 74 72 |Event, D|ialogPtr|
|00002740| 28 77 68 69 63 68 57 69 | 6e 64 6f 77 29 2c 20 69 |(whichWi|ndow), i|
|00002750| 74 65 6d 48 69 74 29 20 | 54 48 45 4e 20 42 45 47 |temHit) |THEN BEG|
|00002760| 49 4e 20 45 4e 44 3b 0d | 09 09 09 09 09 09 45 4e |IN END;.|......EN|
|00002770| 44 3b 0d 09 09 09 09 09 | 45 4e 44 3b 0d 09 09 09 |D;......|END;....|
|00002780| 09 45 4e 44 3b 0d 09 09 | 55 4e 54 49 4c 20 69 74 |.END;...|UNTIL it|
|00002790| 65 6d 48 69 74 20 49 4e | 20 5b 6f 6b 2c 20 63 61 |emHit IN| [ok, ca|
|000027a0| 6e 63 65 6c 5d 3b 0d 09 | 45 4e 44 3b 0d 09 0d 09 |ncel];..|END;....|
|000027b0| 0d 09 50 52 4f 43 45 44 | 55 52 45 20 64 6f 50 6f |..PROCED|URE doPo|
|000027c0| 70 75 70 44 69 61 6c 6f | 67 3b 0d 09 09 56 41 52 |pupDialo|g;...VAR|
|000027d0| 0d 09 09 09 74 68 65 44 | 69 61 6c 6f 67 3a 20 44 |....theD|ialog: D|
|000027e0| 69 61 6c 6f 67 50 74 72 | 3b 0d 09 09 09 69 54 79 |ialogPtr|;....iTy|
|000027f0| 70 65 3a 20 69 6e 74 65 | 67 65 72 3b 0d 09 09 09 |pe: inte|ger;....|
|00002800| 69 52 65 63 74 3a 20 52 | 65 63 74 3b 0d 09 09 09 |iRect: R|ect;....|
|00002810| 69 48 61 6e 64 6c 65 3a | 20 48 61 6e 64 6c 65 3b |iHandle:| Handle;|
|00002820| 0d 09 09 09 70 6f 70 75 | 70 52 65 63 74 3a 20 52 |....popu|pRect: R|
|00002830| 65 63 74 3b 0d 09 09 09 | 74 68 65 47 6c 6f 62 61 |ect;....|theGloba|
|00002840| 6c 73 3a 20 44 69 61 6c | 6f 67 47 6c 6f 62 61 6c |ls: Dial|ogGlobal|
|00002850| 73 3b 0d 09 42 45 47 49 | 4e 0d 09 09 74 68 65 44 |s;..BEGI|N...theD|
|00002860| 69 61 6c 6f 67 20 3a 3d | 20 47 65 74 4e 65 77 44 |ialog :=| GetNewD|
|00002870| 69 61 6c 6f 67 28 50 6f | 70 75 70 44 4c 4f 47 2c |ialog(Po|pupDLOG,|
|00002880| 20 4e 49 4c 2c 20 50 6f | 69 6e 74 65 72 28 2d 31 | NIL, Po|inter(-1|
|00002890| 29 29 3b 0d 09 09 49 46 | 20 74 68 65 44 69 61 6c |));...IF| theDial|
|000028a0| 6f 67 20 3d 20 4e 49 4c | 20 54 48 45 4e 20 42 45 |og = NIL| THEN BE|
|000028b0| 47 49 4e 0d 09 09 09 09 | 53 79 73 42 65 65 70 28 |GIN.....|SysBeep(|
|000028c0| 31 29 3b 0d 09 09 09 09 | 65 78 69 74 28 64 6f 50 |1);.....|exit(doP|
|000028d0| 6f 70 75 70 44 69 61 6c | 6f 67 29 3b 0d 09 09 09 |opupDial|og);....|
|000028e0| 45 4e 44 3b 0d 09 09 53 | 65 74 50 6f 72 74 28 74 |END;...S|etPort(t|
|000028f0| 68 65 44 69 61 6c 6f 67 | 29 3b 0d 09 09 0d 09 09 |heDialog|);......|
|00002900| 53 65 74 57 52 65 66 43 | 6f 6e 28 74 68 65 44 69 |SetWRefC|on(theDi|
|00002910| 61 6c 6f 67 2c 20 6c 6f | 6e 67 69 6e 74 28 40 74 |alog, lo|ngint(@t|
|00002920| 68 65 47 6c 6f 62 61 6c | 73 29 29 3b 0d 0d 09 09 |heGlobal|s));....|
|00002930| 74 68 65 47 6c 6f 62 61 | 6c 73 2e 6d 65 6e 75 73 |theGloba|ls.menus|
|00002940| 5b 6e 6f 72 6d 61 6c 50 | 6f 70 75 70 49 44 5d 2e |[normalP|opupID].|
|00002950| 68 4d 65 6e 75 20 3a 3d | 20 47 65 74 4d 65 6e 75 |hMenu :=| GetMenu|
|00002960| 28 6e 6f 72 6d 61 6c 50 | 6f 70 75 70 49 44 29 3b |(normalP|opupID);|
|00002970| 0d 09 09 49 6e 73 65 72 | 74 4d 65 6e 75 28 74 68 |...Inser|tMenu(th|
|00002980| 65 47 6c 6f 62 61 6c 73 | 2e 6d 65 6e 75 73 5b 6e |eGlobals|.menus[n|
|00002990| 6f 72 6d 61 6c 50 6f 70 | 75 70 49 44 5d 2e 68 4d |ormalPop|upID].hM|
|000029a0| 65 6e 75 2c 20 2d 31 29 | 3b 0d 09 09 43 61 6c 63 |enu, -1)|;...Calc|
|000029b0| 4d 65 6e 75 53 69 7a 65 | 28 74 68 65 47 6c 6f 62 |MenuSize|(theGlob|
|000029c0| 61 6c 73 2e 6d 65 6e 75 | 73 5b 6e 6f 72 6d 61 6c |als.menu|s[normal|
|000029d0| 50 6f 70 75 70 49 44 5d | 2e 68 4d 65 6e 75 29 3b |PopupID]|.hMenu);|
|000029e0| 0d 09 09 74 68 65 47 6c | 6f 62 61 6c 73 2e 6d 65 |...theGl|obals.me|
|000029f0| 6e 75 73 5b 6e 6f 72 6d | 61 6c 50 6f 70 75 70 49 |nus[norm|alPopupI|
|00002a00| 44 5d 2e 73 65 6c 65 63 | 74 65 64 49 74 65 6d 20 |D].selec|tedItem |
|00002a10| 3a 3d 20 31 3b 0d 09 09 | 74 68 65 47 6c 6f 62 61 |:= 1;...|theGloba|
|00002a20| 6c 73 2e 6d 65 6e 75 73 | 5b 6e 6f 72 6d 61 6c 50 |ls.menus|[normalP|
|00002a30| 6f 70 75 70 49 44 5d 2e | 73 6d 61 6c 6c 46 6f 6e |opupID].|smallFon|
|00002a40| 74 20 3a 3d 20 46 41 4c | 53 45 3b 0d 09 09 47 65 |t := FAL|SE;...Ge|
|00002a50| 74 44 69 61 6c 6f 67 49 | 74 65 6d 28 74 68 65 44 |tDialogI|tem(theD|
|00002a60| 69 61 6c 6f 67 2c 20 70 | 6f 70 75 70 31 49 74 65 |ialog, p|opup1Ite|
|00002a70| 6d 2c 20 69 54 79 70 65 | 2c 20 69 48 61 6e 64 6c |m, iType|, iHandl|
|00002a80| 65 2c 20 69 52 65 63 74 | 29 3b 20 20 0d 09 09 53 |e, iRect|); ...S|
|00002a90| 65 74 44 69 61 6c 6f 67 | 49 74 65 6d 28 74 68 65 |etDialog|Item(the|
|00002aa0| 44 69 61 6c 6f 67 2c 20 | 70 6f 70 75 70 31 49 74 |Dialog, |popup1It|
|00002ab0| 65 6d 2c 20 75 73 65 72 | 49 74 65 6d 2c 20 48 61 |em, user|Item, Ha|
|00002ac0| 6e 64 6c 65 28 4e 65 77 | 55 73 65 72 49 74 65 6d |ndle(New|UserItem|
|00002ad0| 50 72 6f 63 28 40 55 70 | 64 61 74 65 50 6f 70 55 |Proc(@Up|datePopU|
|00002ae0| 70 29 29 2c 20 69 52 65 | 63 74 29 3b 0d 09 09 0d |p)), iRe|ct);....|
|00002af0| 09 09 74 68 65 47 6c 6f | 62 61 6c 73 2e 6d 65 6e |..theGlo|bals.men|
|00002b00| 75 73 5b 73 6d 61 6c 6c | 50 6f 70 75 70 49 44 5d |us[small|PopupID]|
|00002b10| 2e 68 4d 65 6e 75 20 3a | 3d 20 47 65 74 4d 65 6e |.hMenu :|= GetMen|
|00002b20| 75 28 73 6d 61 6c 6c 50 | 6f 70 75 70 49 44 29 3b |u(smallP|opupID);|
|00002b30| 0d 09 09 49 6e 73 65 72 | 74 4d 65 6e 75 28 74 68 |...Inser|tMenu(th|
|00002b40| 65 47 6c 6f 62 61 6c 73 | 2e 6d 65 6e 75 73 5b 73 |eGlobals|.menus[s|
|00002b50| 6d 61 6c 6c 50 6f 70 75 | 70 49 44 5d 2e 68 4d 65 |mallPopu|pID].hMe|
|00002b60| 6e 75 2c 20 2d 31 29 3b | 0d 09 09 43 61 6c 63 4d |nu, -1);|...CalcM|
|00002b70| 65 6e 75 53 69 7a 65 28 | 74 68 65 47 6c 6f 62 61 |enuSize(|theGloba|
|00002b80| 6c 73 2e 6d 65 6e 75 73 | 5b 73 6d 61 6c 6c 50 6f |ls.menus|[smallPo|
|00002b90| 70 75 70 49 44 5d 2e 68 | 4d 65 6e 75 29 3b 0d 09 |pupID].h|Menu);..|
|00002ba0| 09 74 68 65 47 6c 6f 62 | 61 6c 73 2e 6d 65 6e 75 |.theGlob|als.menu|
|00002bb0| 73 5b 73 6d 61 6c 6c 50 | 6f 70 75 70 49 44 5d 2e |s[smallP|opupID].|
|00002bc0| 73 65 6c 65 63 74 65 64 | 49 74 65 6d 20 3a 3d 20 |selected|Item := |
|00002bd0| 31 3b 0d 09 09 74 68 65 | 47 6c 6f 62 61 6c 73 2e |1;...the|Globals.|
|00002be0| 6d 65 6e 75 73 5b 73 6d | 61 6c 6c 50 6f 70 75 70 |menus[sm|allPopup|
|00002bf0| 49 44 5d 2e 73 6d 61 6c | 6c 46 6f 6e 74 20 3a 3d |ID].smal|lFont :=|
|00002c00| 20 54 52 55 45 3b 0d 09 | 09 47 65 74 44 69 61 6c | TRUE;..|.GetDial|
|00002c10| 6f 67 49 74 65 6d 28 74 | 68 65 44 69 61 6c 6f 67 |ogItem(t|heDialog|
|00002c20| 2c 20 70 6f 70 75 70 32 | 49 74 65 6d 2c 20 69 54 |, popup2|Item, iT|
|00002c30| 79 70 65 2c 20 69 48 61 | 6e 64 6c 65 2c 20 69 52 |ype, iHa|ndle, iR|
|00002c40| 65 63 74 29 3b 0d 09 09 | 53 65 74 44 69 61 6c 6f |ect);...|SetDialo|
|00002c50| 67 49 74 65 6d 28 74 68 | 65 44 69 61 6c 6f 67 2c |gItem(th|eDialog,|
|00002c60| 20 70 6f 70 75 70 32 49 | 74 65 6d 2c 20 75 73 65 | popup2I|tem, use|
|00002c70| 72 49 74 65 6d 2c 20 48 | 61 6e 64 6c 65 28 4e 65 |rItem, H|andle(Ne|
|00002c80| 77 55 73 65 72 49 74 65 | 6d 50 72 6f 63 28 40 55 |wUserIte|mProc(@U|
|00002c90| 70 64 61 74 65 50 6f 70 | 55 70 29 29 2c 20 69 52 |pdatePop|Up)), iR|
|00002ca0| 65 63 74 29 3b 0d 0d 09 | 09 47 65 74 44 69 61 6c |ect);...|.GetDial|
|00002cb0| 6f 67 49 74 65 6d 28 74 | 68 65 44 69 61 6c 6f 67 |ogItem(t|heDialog|
|00002cc0| 2c 20 64 65 66 61 75 6c | 74 49 74 65 6d 2c 20 69 |, defaul|tItem, i|
|00002cd0| 54 79 70 65 2c 20 69 48 | 61 6e 64 6c 65 2c 20 69 |Type, iH|andle, i|
|00002ce0| 52 65 63 74 29 3b 20 0d | 09 09 53 65 74 44 69 61 |Rect); .|..SetDia|
|00002cf0| 6c 6f 67 49 74 65 6d 28 | 74 68 65 44 69 61 6c 6f |logItem(|theDialo|
|00002d00| 67 2c 20 64 65 66 61 75 | 6c 74 49 74 65 6d 2c 20 |g, defau|ltItem, |
|00002d10| 75 73 65 72 49 74 65 6d | 2c 20 48 61 6e 64 6c 65 |userItem|, Handle|
|00002d20| 28 4e 65 77 55 73 65 72 | 49 74 65 6d 50 72 6f 63 |(NewUser|ItemProc|
|00002d30| 28 40 44 72 61 77 44 65 | 66 61 75 6c 74 42 74 6e |(@DrawDe|faultBtn|
|00002d40| 29 29 2c 20 69 52 65 63 | 74 29 3b 0d 0d 09 09 53 |)), iRec|t);....S|
|00002d50| 68 6f 77 57 69 6e 64 6f | 77 28 74 68 65 44 69 61 |howWindo|w(theDia|
|00002d60| 6c 6f 67 29 3b 0d 09 09 | 48 61 6e 64 6c 65 45 76 |log);...|HandleEv|
|00002d70| 65 6e 74 73 28 74 68 65 | 44 69 61 6c 6f 67 29 3b |ents(the|Dialog);|
|00002d80| 0d 0d 09 09 44 65 6c 65 | 74 65 4d 65 6e 75 28 6e |....Dele|teMenu(n|
|00002d90| 6f 72 6d 61 6c 50 6f 70 | 75 70 49 44 29 3b 0d 09 |ormalPop|upID);..|
|00002da0| 09 44 65 6c 65 74 65 4d | 65 6e 75 28 73 6d 61 6c |.DeleteM|enu(smal|
|00002db0| 6c 50 6f 70 75 70 49 44 | 29 3b 0d 09 09 44 69 73 |lPopupID|);...Dis|
|00002dc0| 70 6f 73 65 44 69 61 6c | 6f 67 28 74 68 65 44 69 |poseDial|og(theDi|
|00002dd0| 61 6c 6f 67 29 3b 0d 09 | 45 4e 44 3b 0d 0d 45 4e |alog);..|END;..EN|
|00002de0| 44 2e 0d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |D.......|........|
|00002df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e00| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00002e10| 01 0e 00 04 30 2b 00 02 | d0 6c 01 12 37 40 00 06 |....0+..|.l..7@..|
|00002e20| 2f 2c 00 fe 2f 2c 00 f6 | 4e ad 03 62 50 8f 4a 6c |/,../,..|N..bP.Jl|
|00002e30| 0d 50 6f 70 75 70 44 69 | 61 6c 6f 67 2e 70 02 00 |.PopupDi|alog.p..|
|00002e40| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00002e50| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00002e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e70| 00 00 ae 76 dd a4 00 00 | 00 00 00 00 01 9a 7e 01 |...v....|......~.|
|00002e80| de ae 00 08 4f ef 00 0c | 2f 07 48 78 00 20 4e ad |....O...|/.Hx. N.|
|00002e90| 07 a2 28 80 4e ad 02 32 | 3c 00 48 c0 50 8f 66 00 |..(.N..2|<.H.P.f.|
|00002ea0| 01 a0 20 54 a0 64 a0 29 | 48 78 00 01 48 78 00 2b |.. T.d.)|Hx..Hx.+|
|00002eb0| 4e ad 07 a2 29 40 00 04 | 4e ad 02 32 3c 00 48 c0 |N...)@..|N..2<.H.|
|00002ec0| 50 8f 66 00 01 7c 20 6c | 00 04 a0 64 a0 29 48 78 |P.f..| l|...d.)Hx|
|00002ed0| 00 01 48 78 00 2a 4e ad | 07 a2 29 40 00 08 4e ad |..Hx.*N.|..)@..N.|
|00002ee0| 02 32 3c 00 48 c0 50 8f | 66 00 01 56 20 6c 00 08 |.2<.H.P.|f..V l..|
|00002ef0| a0 64 a0 29 48 78 00 01 | 48 78 00 2c 4e ad 07 a2 |.d.)Hx..|Hx.,N...|
|00002f00| 00 00 00 48 00 09 47 65 | 6e 65 76 61 00 00 00 00 |...H..Ge|neva....|
|00002f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f20| 00 00 00 00 00 00 00 03 | 00 02 00 58 00 3e 02 2f |........|...X.>./|
|00002f30| 02 9d 00 58 00 3e 02 2f | 02 9d ae 4b 7e fa 00 00 |...X.>./|...K~...|
|00002f40| 19 b8 00 00 19 c0 00 00 | 16 2f 01 00 00 00 00 04 |........|./......|
|00002f50| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00002f60| 00 00 00 46 03 4f 59 c0 | 42 78 00 00 00 1c 00 46 |...F.OY.|Bx.....F|
|00002f70| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00002f80| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00002f90| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00002fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+